Answer Posted / som shekhar
Take the following example where i assume that table size
has been defined previosly but at some part of time i want
to change it..but the table size is defined in some other
module and you dont have an access to it.
#if TABLE_SIZE>200
#undef TABLE_SIZE
#define TABLE_SIZE 200
#elif TABLE_SIZE<50
#undef TABLE_SIZE
#define TABLE_SIZE 50
#else
#undef TABLE_SIZE
#define TABLE_SIZE 100
#endif
int table[TABLE_SIZE];
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the real time example of inheritance?
What is inheritance and how many types of inheritance?
Explain virtual inheritance?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
How long to learn object oriented programming?
What is the point of polymorphism?
what is difference between class template and template class?
What is polymorphism used for?
What are the 3 principles of oop?
What is oops in simple words?
What is class in oop with example?
Where You Can Use Interface in your Project
What are classes oop?
Can a destructor be called directly?
#include