what is meant by object based programming and what are the main differences between object based and oops.
Sounds like two ways of saying the same thing to me.
- What are MACROS in 'C' and what is the use of it.
Macros are instructions for the C preprocessor. They should be avoided because they circumvent a number of checks made by the compiler which protect the programmer from him/herself. They are there mainly for historical reasons but can occasionally be handy to change the way code is compiled, for example.
- Can a function return any no of perameters?
Directly, no. Indirectly, yes. A function returns either nothing or a single value. That value may be a pointer to an array which can contain any number of variables. The array must then be declared outside the body of the function or in the function and on the heap or in the function and static (which is ugly).