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

Write a program using display() function which takes two arguments.

1085


How do you define/declare constants in c++?

1054


What is polymorphism and its type in c++?

1081


What is the use of "new" operator?

1137


How is c++ different from java?

1050


Differentiate between the message and method in c++?

1075


Difference between delete and free.

1081


Explain the difference between class and struct in c++?

1045


What is vector string in c++?

1090


When we use Abstract Class and when we use Interface?where we will implement in real time?

2187


Can non graphic characters be used and processed in C++?

1197


Difference between Abstraction and encapsulation in C++?

1165


How static variables and local variablesare similar and dissimilar?

1043


Which one between if-else and switch is more efficient?

1076


Can we inherit constructor in c++?

1097