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
What are the benefits of polymorphism?
Why is oop better than procedural?
What is the importance of oop?
Write a program to sort the number with different sorts in one program ??
Prepare me a program for the animation of train
How long to learn object oriented programming?
Why is polymorphism important in oop?
What do you mean by Encapsulation?
What are two types of polymorphism?
What is the purpose of enum?
What are the data types in oop?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
How does polymorphism work?
Why is abstraction used?
What is ambiguity in inheritance?