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
Write a program to show the change in position of a cursor using c
how should functions be apportioned among source files?
Ow can I insert or delete a line (or record) in the middle of a file?
Write a program of advanced Fibonacci series.
How can type-insensitive macros be created?
Which built-in library function can be used to match a patter from the string?
Why is it that not all header files are declared in every C program?
What language is lisp written in?
What are global variables?
What are the types of c language?
What are multibyte characters?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Are pointers integer?
how many errors in c explain deply
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)