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 polymorphism explain?
program for insertion ,deletion,sorting in double link list
What is the main purpose of inheritance law?
What is difference between abstraction and encapsulation?
• What are the desirable attributes for memory managment?
What is solid in oops?
What is property in oops?
is there any choice in opting subjects like 4 out of 7
What are the features of oop?
Templates mean
What is meant by multiple inheritance?
What is coupling in oop?
What are classes oop?
What is inheritance in simple words?
What is polymorphism what are the different types of polymorphism?