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 clrscr is used after variable declaration?

1682


What should malloc(0) do?

1113


Is c easy to learn?

974


write a c program in such a way that if we enter the today date the output should be next day's date.

2188


What is data types?

1077


What is typeof in c?

1007


Explain what are the different file extensions involved when programming in c?

1107


What is the difference between array_name and &array_name?

1289


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3304


What is the code for 3 questions and answer check in VisualBasic.Net?

2153


How can you convert integers to binary or hexadecimal?

1022


What is a structure member in c?

995


how can f be used for both float and double arguments in printf? Are not they different types?

1060


Explain the advantages of using macro in c language?

992


how do you execute a c program in unix.

1110