wat is the difference between a definition and declaration?
float y;---it looks like a declaration..but it s a
definition.how?someone explain
Answer Posted / dally
defination is allocating memory to the variable.
but declaration is telling what type of variable it is and
not allocating memory for it.
Ex.int i;
extern int b;
here int i is definition because variable of value is
allocated in memory.
but variable b declared as int variable but memory is not
allocated for this.
float y is defination as compiler allcates memory for it
if you give as extern float y it is declaration
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What are the c keywords?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
In which language linux is written?
Where define directive used?
What is a null string in c?
Explain how can I open a file so that other programs can update it at the same time?
How is a pointer variable declared?
What is the purpose of type declarations?
Subtract Two Number Without Using Subtraction Operator
What are the types of type specifiers?
Why does the call char scanf work?
What is the difference between typedef struct and struct?
What are operators in c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?