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
Which sort does c++ use?
When should I use unitbuf flag?
How to implement is-a and has-a class relationships?
What is binary object model?
Why can’t you call invariants() as the first line of your constructor?
Explain explicit container.
Explain rtti.
Write a recursive program to calculate factorial in c++.
What is the best way to declare and define global variables?
Differentiate between realloc() and free().
What is auto type c++?
What is buffering in c++?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
What is meant by const_cast?
Write is a binary search tree? Write an algo and tell complexity?