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 are the advantages of early binding?
What is a buffer c++?
What are pointer-to-members? Explain.
Explain about templates of C++.
What is a pdb file?
What is the precedence when there is a global variable and a local variable in the program with the same name?
What is vector processing?
What is the arrow operator in c++?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What does new return if there is insufficient memory to make your new object?
What do the keywords volatile and mean mutable?
What is lvalue?
What is setw manipulator in c++?
What is implicit conversion/coercion in c++?
How does com provide language transparency?