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 do you mean by global variables?
Which is the best c++ compiler?
Why should you learn c++?
What is namespace & why it is used in c++?
Which field is used in c++?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What do you know about near, far and huge pointer?
What is a pointer with example?
Why is main an int?
What does h mean in maths?
What does asterisk mean in c++?
Can I learn c++ without knowing c?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What is std :: flush?
What is the c++ programming language used for?