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 is the difference between set and map in c++?

912


How do I run a program in notepad ++?

845


What is a vector c++?

873


What is the purpose of ios::basefield in the following statement?

1046


What is the full form of c++?

955


what does the following statement mean? int (*a)[4]

861


What is operator overloading in c++ example?

894


When should you use global variables?

940


What is a string example?

823


What is the c++ code?

897


Explain the concept of copy constructor?

843


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2277


What can c++ be used for?

847


How can a struct in c++ differs from a struct in c?

827


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

780