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 / asif karim

#include <stdio.h>
#include<iostream>
using namespace std;

void main()
{
const int var=10;
int a;
a=*(int* )& var=20;
cout<<a;
}

Is This Answer Correct ?    3 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ faster than c?

1085


Write about the access privileges in c++ and also mention about its default access level?

1127


Is c++ a good beginners programming language?

1125


Write syntax to define friend functions in C++.

1133


What are inline functions? What is the syntax for defining an inline function?

1215


When does a name clash occur in c++?

1215


Evaulate: 22%5 a) 2 b) 4 c) 0

1144


When is the destructor called?

1085


What does #define mean in c++?

1348


What is iomanip c++?

1116


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1256


If a function doesn’t return a value, how do you declare the function?

1111


Why do you use the namespace feature?

1135


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1123


What is a hash function c++?

1120