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 a definition and a declaration?
Tell me what are static member functions?
Is c++ harder than java?
What is meant by const_cast?
Explain the concept of copy constructor?
How do you declare A pointer to a function which receives nothing and returns nothing
What is conditions when using boolean operators?
Why can’t you call invariants() as the first line of your constructor?
what are the iterator and generic algorithms.
Can char be a number c++?
What is the use of main function in c++?
What are friend functions in C++?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
When to use “const” reference arguments in a function?
Differentiate between structure and class in c++.