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

How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

1021


What does it mean to declare a member function as static?

1106


What are the two types of comments, and how do they differ?

1209


List down the guideline that should be followed while using friend function.

1112


Is c++ still in demand?

1200


Where Malloc(), Calloc(), and realloc() does get memory?

1100


What is c++ runtime?

1153


You want to link a c++ program to c functions. How would you do it?

1039


Explain the uses oof nested class?

1190


What is a far pointer? where we use it?

1126


Why is c++ difficult?

1105


Why cstdlib is used in c++?

1092


an operation between an integer and real always yeilds a) integer result b) real result c) float result

1211


What are pointer-to-members? Explain.

1221


What is split a string in c++?

1240