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
Should a constructor be public or private?
Which programming language is best to learn first?
Why do we use templates?
Define the process of handling in case of destructor failure?
What is the default width for ouputting a long integer using the insertion operator?
What is constructor and destructor in c++?
What is c++ array?
Is java a c++?
What is pure virtual function?
What is searching? Explain linear and binary search.
When does a 'this' pointer get created?
Is c++ a float?
What is the use of 'using' declaration in c++?
Tell me what are static member functions?
Can we use this pointer inside static member function?