answersLogoWhite

0


Best Answer

Variable-declaration is:

extern int x;

extern double y;

extern char a;

Variable-definition is:

int x;

static double y;

auto char a;

Variable-definition with initialization is:

int x = 1;

static double y= 2.3;

auto char a = 'w';

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

A discussion of initialization and definition should also include a discussion of declaration.

Declaration is the point in compilation where an object is described to the compiler. At that point, the compiler knows the type and size of the object.

Definition is the point in compilation where an object is allocated by the compiler. At that point, the compiler knows the address of the object.

Initialization is the point in compilation where an object is assigned an initial value. At that point, the compiler knows the value of the object.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between initialisation and definition in C programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between conventional programming and object oriented programming?

diff between oops and conventional programming


What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


Difference between C and C programming language?

The C and C programming languages are one and the same. There is no difference between those languages.


What is the difference between structured oriented programming procedure and oriented programming?

LOTTA


What is the Difference between Kotler's marketing definition and AMA marketing definition?

answering "What is the Difference between kotler's marketing definition and AMA marketing definition?"


What is the difference between coding and programming?

Coding is more general -- there are many kinds of codes and different reasons for them. However, when it comes to computer slang, there is no difference between coding and programming.


Difference between overlays in programming and virtual memory?

abcd


What is the kids definition of condensation?

How are we to know the difference between 'kids definition' and 'definition'.


What is the difference between fork and vfork?

Look up information on programming.


Difference between greedy algorithm and dynamic programming?

the basic difference between them is that in greedy algorithm only one decision sequence is ever generated. where as in dynamic programming many decision sequences are generated.


What is the difference between a description and a definition?

gfkgdfuytdghtcfht


What is the best definition of this termrange?

the difference between