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 pointer -to-members in C++? Give their syntax?
What do you mean by static variables?
What is enum class in c++?
write a porgram in c++ that reads an integer and print the biggest digit in the number
What is difference between n and endl in c++?
Can user-defined object be declared as static data member of another class?
What are different types of loops in c++?
Can we declare a base-class destructor as virtual?
What do you mean by friend class & friend function in c++?
What is private public protected in c++?
Do vectors start at 0?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
What is struct c++?
How a macro differs from a template?
Who created c++?