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 the keywords volatile and mean mutable?
What is ostream in c++?
Explain the properties and principles of oop.
Explain the problem with overriding functions
Why namespace is used in c++?
What is isdigit c++?
What is the difference between a pointer and a link in c ++?
What can I use instead of namespace std?
What is function overriding in c++?
Program to check whether a word is a sub-string or not of a string typed
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What are compilers in c++?
What is abstract class in c++?
What is flush programming?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).