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 / mr.x

int main()
{
const volatile int no=10;
int *ptr;
ptr=(int *)&no;
*ptr=30;
printf("%d %d",no,*ptr);

return 0;
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the difference between a While & Do While loops?

1059


What are pointers in C? Give an example where to illustrate their significance.

1179


What is huge pointer in c?

1039


What is a good way to implement complex numbers in c?

1011


Distinguish between actual and formal arguments.

1022


How can you determine the maximum value that a numeric variable can hold?

1177


How can you tell whether two strings are the same?

1220


How do we declare variables in c?

1020


how to find binary of number?

4364


Tell me when is a void pointer used?

1121


What is a structure and why it is used?

1152


The difference between printf and fprintf is ?

1229


Write the syntax and purpose of a switch statement in C.

1061


What is a union?

995


What is the 'named constructor idiom'?

1045