what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / harshit
there is no practical such as declaration its in theory only
the only practical application is :
int a; //defination
a=10; //intialization
this is a normal thing we do,,,now
somemethod()
{
int a;//defination
}
main()
{
extern int a;//declaration
a=10//intialization
}
here we declare that there is a variable "a" somewhere
n this is the only use of declaration ...
to best of my knowledge...
plz suggest if someone kno better
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the difference between the = symbol and == symbol?
What are volatile variables in c?
Explain how can I make sure that my program is the only one accessing a file?
What is static and volatile in c?
Compare array data type to pointer data type
What are the general description for loop statement and available loop types in c?
Do array subscripts always start with zero?
Explain what are multibyte characters?
Why is c still so popular?
What are the different types of errors?
Why we not create function inside function.
Are pointers integer?
What does nil mean in c?
Was 2000 a leap year?
How can my program discover the complete pathname to the executable from which it was invoked?