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 use of #include in c?

817


What is the condition that is applied with ?: Operator?

868


Function calling procedures? and their differences? Why should one go for Call by Reference?

819


When is a “switch” statement preferable over an “if” statement?

853


Why should I use standard library functions instead of writing my own?

951


Differentiate between ordinary variable and pointer in c.

838


What does 3 mean in texting?

813


Explain output of printf("Hello World"-'A'+'B'); ?

1166


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

849


What is a method in c?

811


Describe dynamic data structure in c programming language?

806


What does main () mean in c?

845


Can we increase size of array in c?

707


What is this pointer in c plus plus?

794


What is wrong with this program statement?

779