Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to access or modify the const variable in c ?

Answer Posted / varunreddy

try this it will work:

#include<stdio.h>
int main()
{
const int i=10;

*(int *)&i=i++;
printf("%d\n",i);

return 0;
}

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c known as a mother language?

1243


What are structure types in C?

1108


write a c program for swapping two strings using pointer

2640


What is the best organizational structure?

1125


why we wont use '&' sing in aceesing the string using scanf

2376


Why we use void main in c?

1178


How can I convert a number to a string?

1203


What is a file descriptor in c?

1138


What are the functions to open and close file in c language?

1211


Explain what does the format %10.2 mean when included in a printf statement?

1367


What are 'near' and 'far' pointers?

1047


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1947


How do you convert strings to numbers in C?

1232


Can a void pointer point to a function?

1031


What is clrscr in c?

1138