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
Why malloc is faster than calloc?
What is meant by keywords in c?
Can true be a variable name in c?
Can variables be declared anywhere in c?
differentiate built-in functions and user – defined functions.
What is the translation phases used in c language?
What is static memory allocation?
How do you determine whether to use a stream function or a low-level function?
How to implement a packet in C
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Explain what does the function toupper() do?
What is the difference between pure virtual function and virtual function?
What is meant by errors and debugging?
Is anything faster than c?
What are the difference between a free-standing and a hosted environment?