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
What is use of #include in c?
What is the condition that is applied with ?: Operator?
Function calling procedures? and their differences? Why should one go for Call by Reference?
When is a “switch” statement preferable over an “if” statement?
Why should I use standard library functions instead of writing my own?
Differentiate between ordinary variable and pointer in c.
What does 3 mean in texting?
Explain output of printf("Hello World"-'A'+'B'); ?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is a method in c?
Describe dynamic data structure in c programming language?
What does main () mean in c?
Can we increase size of array in c?
What is this pointer in c plus plus?
What is wrong with this program statement?