How to access or modify the const variable in c ?
Answer Posted / vignesh1988i
const. variable cannot be modified........ if you declare an
variable as:
const char i=90;
throught the program 'i' cant be modified
but #define macro can replace const.. and that macro can be
modified.... but its disadvantage is it will blindly
substitute the data which is #defined.......
| Is This Answer Correct ? | 21 Yes | 9 No |
Post New Answer View All Answers
How can you tell whether a program was compiled using c versus c++?
What do you mean by a sequential access file?
What is hashing in c language?
What is difference between arrays and pointers?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
which type of aspect you want from the student.
How to write a code for reverse of string without using string functions?
What is pass by reference in functions?
What's a good way to check for "close enough" floating-point equality?
Explain what math functions are available for integers? For floating point?
Which header file is essential for using strcmp function?
What is "Duff's Device"?
What is the equivalent code of the following statement in WHILE LOOP format?
What is %d used for?
What is array in C