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

What is the c language function prototype?

0 Answers  


Is it better to use malloc() or calloc()?

0 Answers   Aspire, Infogain,


Why do we use int main?

0 Answers  


Write a C program to multiply tho numbers without using arithmetic operator (+, -, *, /).

1 Answers  


Write a small C program to determine whether a machine's type is little-endian or big-endian.

5 Answers   nvidia,


What are the advantages of Macro over function?

1 Answers  


Write a function that will take in a phone number and output all possible alphabetical combinations

0 Answers   Motorola,


Which is the memory area not included in C program? give the reason

0 Answers   IBM, TCS,


difference between object file and executable file

0 Answers  


Why is it usually a bad idea to use gets()? Suggest a workaround.

1 Answers  


Where register variables are stored in c?

0 Answers  


Explain the difference between null pointer and void pointer.

0 Answers   TCS,


Categories