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

You run a shell on unix system. How would you tell which shell are you running?

1173


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

1056


How does atoi function work?

1156


Refer to a name of class or function that is defined within a namespace?

1119


What is ios :: in in c++?

1070


What is c++ map?

1166


How to demonstrate the use of a variable?

1124


. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

3282


What is size of string in c++?

987


Write bites in Turbo c++ Header ("Include") Files.

1268


What is lazy initialization in c++?

1107


What is searching? Explain linear and binary search.

998


How do you declare A pointer to a function which receives nothing and returns nothing

1237


What is encapsulation in c++ with example?

1005


What is the need of a destructor? Explain with the help of an example.

1029