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
What is the difference between set and map in c++?
How do I run a program in notepad ++?
What is a vector c++?
What is the purpose of ios::basefield in the following statement?
What is the full form of c++?
what does the following statement mean? int (*a)[4]
What is operator overloading in c++ example?
When should you use global variables?
What is a string example?
What is the c++ code?
Explain the concept of copy constructor?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What can c++ be used for?
How can a struct in c++ differs from a struct in c?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0