What is the difference between declaring a variable by
constant keyword and #define ing that variable?



What is the difference between declaring a variable by constant keyword and #define ing that varia..

Answer / ganesh

constant- it cannot be changed
# define - it can be changed if we can redefine

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

How to develop software using "c" programming?

1 Answers   IBM, TCS,


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

0 Answers  


What is a method in c?

0 Answers  


There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

0 Answers  


Who invented bcpl language?

0 Answers  






What are the 32 keywords in c?

0 Answers  


What is the purpose of 'register' keyword in c language?

0 Answers  


what is c?

4 Answers   IBM, TCS,


second highest number in a given set of numbers

3 Answers   TCS,


int a=2,b=3,c=4; printf("a=%d,b=%d\n",a,b,c); what is the o/p?

6 Answers   Verifone,


What is NULL pointer?

0 Answers   Infosys,


Do you have any idea about the use of "auto" keyword?

0 Answers  


Categories