How to access or modify the const variable in c ?
Answer Posted / mr.x
int main()
{
const volatile int no=10;
int *ptr;
ptr=(int *)&no;
*ptr=30;
printf("%d %d",no,*ptr);
return 0;
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
List the difference between a While & Do While loops?
What are pointers in C? Give an example where to illustrate their significance.
What is huge pointer in c?
What is a good way to implement complex numbers in c?
Distinguish between actual and formal arguments.
How can you determine the maximum value that a numeric variable can hold?
How can you tell whether two strings are the same?
How do we declare variables in c?
how to find binary of number?
Tell me when is a void pointer used?
What is a structure and why it is used?
The difference between printf and fprintf is ?
Write the syntax and purpose of a switch statement in C.
What is a union?
What is the 'named constructor idiom'?