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 many namespaces are there in c++?

1077


Explain the difference between c & c++?

1103


What are guid? Why does com need guids?

1065


What is an adaptor class or wrapper class in c++?

1250


Differentiate between the message and method in c++?

1080


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

1108


What are the advantage of using register variables?

1177


Write a program which uses Command Line Arguments

1192


Can a new be used in place of old mallocq? If yes, why?

1102


What is virtual function? Explain with an example

1105


What is a constant? Explain with an example.

1025


How do you flush a buffer in c++?

1106


How much do coding jobs pay?

1024


What is c++ vb?

1110


Write a program which employs Recursion

1249