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
Why is c++ not purely object oriented?
What is the difference between a template and a macro?
Differentiate between declaration and definition.
Write about the various sections of the executable image?
What happens when the extern "c" char func (char*,waste) executes?
Evaulate: 22%5 a) 2 b) 4 c) 0
write a programme to get a character and thier ASCII value
What is the best it certification?
How can I disable the "echo" feature?
Which c++ compiler is best?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What are the data types in c++?
Explain how functions are classified in C++ ?
what are the iterator and generic algorithms.