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
What is the difference between exit() and _exit() function?
What are types of functions?
What is the purpose of realloc()?
Write a program to print "hello world" without using a semicolon?
What is signed and unsigned?
How to declare a variable?
What is the difference between null pointer and wild pointer?
application attempts to perform an operation?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Sir i need notes for structure,functions,pointers in c language can you help me please
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Are the variables argc and argv are local to main?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?