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
Are polymorphisms mutations?
What are oops methods?
What is abstraction in oop with example?
What is the use of oops?
Why polymorphism is used in oops?
Why it is called runtime polymorphism?
What is object in oops?
What is cohesion in oop?
Can we override main method?
What are the 3 pillars of oop?
What is destructor give example?
What is oops and its features?
what is graphics
What is polymorphism in oops with example?
Why is abstraction needed?