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 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 is abstraction c++?
Why c++ is faster than java?
Is c++ low level?
Define a constructor?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is near, far and huge pointers? How many bytes are occupied by them?
What is iomanip c++?
What does flush do?
Explain the concept of dynamic allocation of memory?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Why can’t you call invariants() as the first line of your constructor?
What is meant by entry controlled loop? What all C++ loops are exit controlled?
What are the various oops concepts in c++?
What are the extraction and insertion operators in c++?