How to access or modify the const variable in c ?
Answer Posted / varunreddy
a small modification to answer #13
#include<stdio.h>
int main()
{
const int a=10;
*(int *)&a=25
printf("%d\n",a);
return 0;
}
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
hi, which software companys will take,if d candidate's % is jst 55%?
Explain how do you print an address?
What is the argument of a function in c?
What are qualifiers?
Why is c still so popular?
what is stack , heap ,code segment,and data segment
What is d'n in c?
If the size of int data type is two bytes, what is the range of signed int data type?
When we use void main and int main?
How can I access an I o board directly?
What is include directive in c?
What are the different file extensions involved when programming in C?
What is a pointer variable in c language?