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
Can math operations be performed on a void pointer?
Can variables be declared anywhere in c?
What is the code in while loop that returns the output of given code?
What are multibyte characters?
Explain how can you tell whether two strings are the same?
What is the difference between union and anonymous union?
Which is the best website to learn c programming?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Can you write the function prototype, definition and mention the other requirements.
Difference between Shallow copy and Deep copy?
How can you increase the size of a dynamically allocated array?
I need testPalindrome and removeSpace
#include
Why & is used in c?
what are non standard function in c
Why is c called c?