answersLogoWhite

0

What is the difference between declaration and definition?

Updated: 8/16/2019
User Avatar

Wiki User

16y ago

Best Answer

definition: the meaning or description of person/place/thing

declaration: taking a stand

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

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

What is the difference between declaration and a definition in c plus plus?

A declaration is an incomplete type whereas a definition is a complete type.


What is the difference between declaration and initialization?

Perhaps an example will help. extern int value; /* declaration */ int value; /* definition */ int value= 20; /* definition with initialization */


Difference between declaring a variable and definition a variable?

Declaration is a promise: 'I will define (or has defined) this variable/function somewhere else'.


What is the difference between declaration and a definition in C with small example?

declaration examples:int main (void);extern int somevariable;definition examples:int main (void) { puts ("Hello world"); return 0; }int somevariable;


Whats the difference between Virginia Declaration of Rights and Declaration of Rights?

There is a difference


What is the difference between declaring variable and initializing variables?

Actually, there is a third step, call definition. Declaration is a statement to the compiler of what type an identifier is, definition is the allocation of memory for that identifier, and initialization is the assignment of an initial value to that identifier. Usually, declaration and definition are done together, but you can also add initialization in that step if desired. int a; /* declaration and definition */ a = 1; /* initialization */ int a = 1; /* declaration, definition, and initialization */ For the case of seperate declaration and definition, consider the struct... struct _mystruct { int a; }; /*declaration */ struct _mystruct mystruct; /* definition */ struct _mystruct { int a; } mystruct; /*declaration and definition */ Note: To be more precise: struct _mystruct; /* struct declaration */ struct _mystruct { int a; }; /* struct definition */ typedef struct _mystruct MYTYPE; /* type definition */ extern struct _mystruct mystructvar; /* variable declaration */ struct _mystruct mystructvar; /* variable definition */ struct _mystruct mystructvar = {7} ; /* variable definition with initialization */ struct _mystruct { int a; } mystruct; /* struct definition and variable definition */ extern struct _mystruct { int a; } mystruct; /* struct definition and variable declaration */


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 kids definition of condensation?

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


What is the difference between the declaration of independence and the articles of confederation?

idek


What is the difference between a description and a definition?

gfkgdfuytdghtcfht


What is the best definition of this termrange?

the difference between


In the definition of management what's the difference between effectively and efficiently?

There is no difference!!!