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
Write a program using display() function which takes two arguments.
How do you define/declare constants in c++?
What is polymorphism and its type in c++?
What is the use of "new" operator?
How is c++ different from java?
Differentiate between the message and method in c++?
Difference between delete and free.
Explain the difference between class and struct in c++?
What is vector string in c++?
When we use Abstract Class and when we use Interface?where we will implement in real time?
Can non graphic characters be used and processed in C++?
Difference between Abstraction and encapsulation in C++?
How static variables and local variablesare similar and dissimilar?
Which one between if-else and switch is more efficient?
Can we inherit constructor in c++?