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

Does std endl flush?

977


What is an associative container in c++?

1007


Why can templates only be implemented in the header file?

1060


What are c++ data types?

1100


What are mutator methods in c++?

1110


Is java as fast as c++?

1046


Explain static and dynamic memory allocation with an example each.

1042


What is c++ 11 and c++ 14?

1003


What is an operator in c++?

995


Can turbo c++ run c program?

1032


Can a program run without main function?

1090


What are the restrictions apply to constructors and destructors?

1029


What are the differences between malloc() and calloc()?

1107


How do you flush a buffer in c++?

1058


What is the function to call to turn an ascii string into a long?

1001