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
What are the features of the c language?
What is a volatile keyword in c?
What does volatile do?
What is return in c programming?
What are the parts of c program?
What is difference between main and void main?
What is the difference between test design and test case design?
What is I ++ in c programming?
code for find determinent of amatrix
What are the keywords in c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is main () in c?
Can you please explain the scope of static variables?
What is self-referential structure in c programming?
List the variables are used for writing doubly linked list program.