what do you mean by defining a variable in our c code?

Answers were Sorted based on User's Feedback



what do you mean by defining a variable in our c code?..

Answer / jugad

Defining a variable means declare its data type , i.e
declaration of data type is very important in c it may be
int, float , long , unsigned,
and initialisation is not so important if you are not
initilize any variable compiler just initialize some garbage
value to that variable.
Courtesy:
http://answerwale.co.cc/?p=24#comment-20

Is This Answer Correct ?    4 Yes 0 No

what do you mean by defining a variable in our c code?..

Answer / nikhil saxena

We only declare & initialize the variables in our code but
we never define them.

Is This Answer Correct ?    8 Yes 4 No

Post New Answer

More C Interview Questions

What are header files and explain what are its uses in c programming?

0 Answers  


What does *p++ do? What does it point to?

0 Answers  


Write a program for finding factorial of a number.

0 Answers   Tech Mahindra,


What is a good data structure to use for storing lines of text?

0 Answers  


main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?

5 Answers   TCS,






what is the diference between pointer to the function and function to the pointer?

2 Answers   Infosys,


Do variables need to be initialized?

0 Answers  


Explain that why C is procedural?

0 Answers   Maveric, Verifone,


What are bit fields? What is their use?

2 Answers   Adobe,


What are c identifiers?

0 Answers  


why integer range between -327680to+32767

2 Answers  


Give me basis knowledge of c , c++...

5 Answers  


Categories