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

Why is c++ not purely object oriented?

1059


What is the difference between a template and a macro?

1114


Differentiate between declaration and definition.

1103


Write about the various sections of the executable image?

1026


What happens when the extern "c" char func (char*,waste) executes?

1127


Evaulate: 22%5 a) 2 b) 4 c) 0

1139


write a programme to get a character and thier ASCII value

3113


What is the best it certification?

1161


How can I disable the "echo" feature?

1232


Which c++ compiler is best?

1202


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

2075


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1090


What are the data types in c++?

985


Explain how functions are classified in C++ ?

1297


what are the iterator and generic algorithms.

2008