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 / kantilal
the diff b/w defination and declaration is
defination is allocating memory to the variable
ddeclaration is telling what type of variable it is and not
allocating memory for it
float y is defination as compiler allcates memory for it
if you give as extern float y it is declaration
| Is This Answer Correct ? | 30 Yes | 0 No |
Post New Answer View All Answers
"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
Why is c called c not d or e?
What is the difference between single charater constant and string constant?
What are extern variables in c?
What are the different data types in C?
What does struct node * mean?
What is a macro in c preprocessor?
What is the use of pointers in C?
What is the right type to use for boolean values in c? Is there a standard type?
Where are local variables stored in c?
Is there a way to jump out of a function or functions?
How does free() know explain how much memory to release?
What is use of #include in c?
Describe the header file and its usage in c programming?
Explain what is the benefit of using #define to declare a constant?