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

Which sort does c++ use?

968


When should I use unitbuf flag?

968


How to implement is-a and has-a class relationships?

959


What is binary object model?

966


Why can’t you call invariants() as the first line of your constructor?

957


Explain explicit container.

1034


Explain rtti.

1024


Write a recursive program to calculate factorial in c++.

1024


What is the best way to declare and define global variables?

1225


Differentiate between realloc() and free().

982


What is auto type c++?

1076


What is buffering in c++?

1019


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1013


What is meant by const_cast?

1071


Write is a binary search tree? Write an algo and tell complexity?

970