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
What is masking?
What is a stream water?
Why malloc is faster than calloc?
Define Spanning-Tree Protocol (STP)
What is 2 d array in c?
What does 2n 4c mean?
Explain modulus operator.
show how link list can be used to repersent the following polynomial i) 5x+2
What is data structure in c programming?
Is fortran still used in 2018?
What are the uses of a pointer?
Why is c called a structured programming language?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
Is calloc better than malloc?
Why enum is used in c?