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...

If we declare two macro with the same identifier without
doing undef the first, what will be the result?
eg: #define MAX_SIZE 100
#define MAX_SIZE 200

int table1[MAX_SIZE];

Answer Posted / ahmed

It will be 200
This is why #define is considered as unsafe type when
compared to const variables

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of early binding?

1067


What is a buffer c++?

1058


What are pointer-to-members? Explain.

1144


Explain about templates of C++.

1150


What is a pdb file?

994


What is the precedence when there is a global variable and a local variable in the program with the same name?

1123


What is vector processing?

1140


What is the arrow operator in c++?

1016


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

1144


What does new return if there is insufficient memory to make your new object?

1030


What do the keywords volatile and mean mutable?

1050


What is lvalue?

1169


What is setw manipulator in c++?

1074


What is implicit conversion/coercion in c++?

1440


How does com provide language transparency?

1006