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 g value paradox?

0 Answers  


main is a predefined or user define function if user defined why? if predefined whay?

12 Answers   TCS,


What are the valid places to have keyword “break”?

0 Answers  


What is the use of the #include directive?

3 Answers  


To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.

4 Answers   Aricent,






What is structure padding & expalain wid example what is bit wise structure?

1 Answers  


which one is highest Priority in c? a)=,b)+,c)++,d)==

4 Answers  


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

0 Answers  


What are the types of variables in c?

0 Answers  


Explain what is a program flowchart and explain how does it help in writing a program?

0 Answers  


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

0 Answers   Wilco,


write a c program to find reminder and quotient if one number is divided by other.to code this program don't use more than 2 variables

2 Answers   TCS,


Categories