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 increase the allowable number of simultaneously open files?
What is volatile variable in c?
What do you mean by a local block?
Why c language is called c?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
How do we print only part of a string in c?
What is this pointer in c plus plus?
Can one function call another?
What is the modulus operator?
When would you use a pointer to a function?
How can I manipulate individual bits?
Explain #pragma statements.
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
What are the different data types in C?
How do I use strcmp?