Explain what is the difference between declaring a variable and defining a variable?



Explain what is the difference between declaring a variable and defining a variable?..

Answer / ss

Declaring variable means
Eg- int a;
Defining variable means we are giving some integer value to that a variable
Eg- a=100;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

why arithmetic operation can’t be performed on a void pointer?

1 Answers  


Why c is procedure oriented?

0 Answers  


write a program to produce the following output; ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A

17 Answers   ABC, College School Exams Tests,


What is Function Pointer? Explain with example?

3 Answers  


can we declare a function in side the structure?

2 Answers   HCL,


difference between loading and linking

1 Answers  


in which language c language is written?

2 Answers  


What is static volatile in c?

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

5 Answers   TCS, Vimukti Technologies,


output for following code??? main() { int x=2,y,z; x*=3+2; printf("1.%d\n",x); x*=y=z=4; printf("2.%d %d %d\n",x,y,z); x=y==z; printf("3.%d\n",x); x==(y=z); printf("%d",x); }

2 Answers   Elysium,


#&#8206;include&#8236;<stdio.h> void main() { int i; for(i=5;0;i++) { printf("%d",i); } }

2 Answers   Facebook,


actually i have 2 years teaching experience as computer faculty but now i am a DBA but when i go for interview many peoples asked me why i left my teaching profession and why i want to come in this field kindly give me the proper answer of this queston

3 Answers   Ramco,


Categories