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
what are the 10 different models of writing an addition program in C language?
What are the uses of null pointers?
What are header files why are they important?
#include
Is fortran faster than c?
What are terms in math?
What are the 3 types of structures?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
How many types of operator or there in c?
Can you please explain the difference between exit() and _exit() function?
How do you print an address?
What is the best way to comment out a section of code that contains comments?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What are qualifiers in c?
What is the use of function in c?