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
Can we define a class within the interface?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Write a c++ program to display pass and fail for three student using static member function
What is polymorphism and its types?
What is the difference between a mixin and inheritance?
What is abstraction in oops?
What is difference between multiple inheritance and multilevel inheritance?
What is a superclass in oop?
can inline function declare in private part of class?
What is the main purpose of inheritance law?
What is encapsulation in oops?
What is class and example?
What is the fundamental idea of oop?
hi all..i want to know oops concepts clearly can any1 explain??
what is the sylabus for priliminaries?