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

Answer Posted / nirmal kumar tailor

declaration means you declare variable.
ex: int a;
defination means this integer type a variable take 2 byte
memory space.
initialization means we initialize the value of integer a
variable type.
ex: int a=2;
in declaration we declare variable and variable type , in
initialization we define the value and in defination we
define the type of variable.

Is This Answer Correct ?    23 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a good way to implement complex numbers in c?

580


How can you find the exact size of a data type in c?

587


What is #include conio h?

581


What is #include stdlib h?

604


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1752






What is the size of array float a(10)?

645


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

631


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

598


What does sizeof return c?

587


What is integer constants?

606


I have seen function declarations that look like this

587


What is the difference between union and anonymous union?

826


Why is not a pointer null after calling free?

583


What is the use of pointers in C?

605


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2441