what is the difference between declaration ,defenetion and
initialization of a variable?

Answer Posted / siddiqui mohd. faisal

declaration : int a;
declaration means here a is declared as integer variable
initialization : int a = 5;
initialization is whatever you have declared give that
variable some value
definition : int a;
definition is whatever variable you have declared give it's
datatype as here a is declared as integer variable

Is This Answer Correct ?    32 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sizeof array?

597


What is the difference between fread and fwrite function?

627


What is a buffer in c?

564


What is the difference between array_name and &array_name?

768


What are the types of i/o functions?

661






What is difference between class and structure?

558


What is c value paradox explain?

561


What is the c language function prototype?

631


What is the purpose of the statement: strcat (S2, S1)?

628


What functions are in conio h?

643


Explain #pragma statements.

589


how is the examination pattern?

1581


What does node * mean?

694


What are the modifiers available in c programming language?

717


How would you rename a function in C?

602