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

Tell me about low level programming languages.

1 Answers   Amdocs,


how to implement stack operation using singly linked list

2 Answers  


Write a pro-gramme to determine whether the number is even or odd?

1 Answers  


logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............

2 Answers   Infosys,


a 'c' program to tell that the set of three coordinates lie on a same line

3 Answers   Persistent,


main() { charx; while (x=0;x<=255;x++) printf("\nAscii value %d Character %c,x,x); }

2 Answers  


difference between the array and linked list general difference related to memory

2 Answers  


write a program to read a number and print in words that is in sentence for example 21,219 then output is "twenty one thousand and two hundred nineteen" by using only control flow statements (only loops and switch case )?

1 Answers   TCS,


What is strcmp in c?

1 Answers  


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1 Answers   TISL,


Write a program to know whether the input number is an armstrong number.

1 Answers   Wipro,


What is meant by errors and debugging?

1 Answers  


Categories