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
Can one function call another?
What is scope rule in c?
Write a program that accept anumber in words
What are different storage class specifiers in c?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is malloc return c?
What is getch c?
What is meant by int main ()?
What is the best way to comment out a section of code that contains comments?
What does #pragma once mean?
What does c mean in basketball?
When should a type cast not be used?
How are structure passing and returning implemented?
What are the uses of null pointers?