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
Why is abstraction used?
What is encapsulation in ict?
What is a superclass in oop?
Why do we use encapsulation in oops?
Why is static class not inherited?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
How do you achieve runtime polymorphism?
can inline function declare in private part of class?
What is persistence in oop?
What is the difference between static polymorphism and dynamic polymorphism?
What is the renewal class?
Can we override main method?
What is coupling in oop?
How long to learn object oriented programming?
What are the 4 pillars of oop?