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


Please Help Members By Posting Answers For Below Questions

What do the keywords volatile and mean mutable?

701


What is ostream in c++?

653


Explain the properties and principles of oop.

622


Explain the problem with overriding functions

682


Why namespace is used in c++?

699






What is isdigit c++?

684


What is the difference between a pointer and a link in c ++?

658


What can I use instead of namespace std?

742


What is function overriding in c++?

686


Program to check whether a word is a sub-string or not of a string typed

1687


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3467


What are compilers in c++?

700


What is abstract class in c++?

687


What is flush programming?

663


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

709