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

Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1101


What is command line arguments in C++? What are its uses? Where we have to use this?

1266


Can you pass a vector to a function?

977


What is constant in c++ with example?

1137


Explain the difference between c++ and java.

1107


What is private inheritance?

1089


Program to check whether a word is a sub-string or not of a string typed

2021


How is new() different from malloc()?

1118


Distinguish between new and malloc and delete and free().

1022


Define pre-condition and post-condition to a member function in c++?

1146


What is long in c++?

1245


What is the advantage of an external iterator.

1039


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1041


What is constructor in C++?

1084


How will you call C functions from C ++ and vice-versa?

1139