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 | 0 No |
Post New Answer View All Answers
How to hide the base class functionality in Inheritance?
What are the components of marker interface?
What is solid in oops?
What is methods in oop?
What is polymorphism explain?
Why is static class not inherited?
What is destructor give example?
• What are the desirable attributes for memory managment?
How does polymorphism work?
write a program to find 2^n+1 ?
What is polymorphism explain its types?
Why is oop better than procedural?
What exactly is polymorphism?
Can a destructor be called directly?
Can we override main method?