How to access or modify the const variable in c ?
Answer Posted / sri harsha s
Its compiler dependant.
Using pointer you can modify the content of a 'const'
variable. It works in gcc.. you will get the following
warning when you compile that program.
warning: initialization discards qualifiers from pointer
target type.
I am not sure about turbo c++.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Explain 'bit masking'?
Differentiate between null and void pointers.
plz let me know how to become a telecom protocol tester. thank you.
What are comments and how do you insert it in a C program?
What is void c?
Define macros.
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
How reliable are floating-point comparisons?
Place the #include statement must be written in the program?
Which is better malloc or calloc?
How do you use a pointer to a function?
How can I get random integers in a certain range?
What language is windows 1.0 written?
What is sizeof array?