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
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
what are the different storage classes in c?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is operator precedence?
How do we open a binary file in Read/Write mode in C?
What is the ANSI C Standard?
What are the advantages of union?
what is the role you expect in software industry?
What Is The Difference Between Null And Void Pointer?
Who invented bcpl language?
What are the different data types in C?
What is function in c with example?
How can I call fortran?
what value is returned to operating system after program execution?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }