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 change constant values?

Answer Posted / udit

const int var=10;
*(int *)&var=20;
this syntex change the constat value

Is This Answer Correct ?    15 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array in c++ example?

1125


What are the differences between java and c++?

1092


What is the difference between an enumeration and a set of pre-processor # defines?

1400


What is lambda in c++?

1243


How do I write a c++ program?

1124


What is c strings syntax?

1157


What is the difference between multiple and multilevel inheritance in c++?

1140


What is a c++ vector?

1064


Why main function is special in c++?

1139


What is object oriented programming (oop)?

1124


What are the operators in c++?

1123


Is there structure in c++?

1036


What are signs of manipulation?

1069


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

1108


What is the full form of ios?

1079