How to find the second maximum salary in a database?
Usually,people use sub query,for some it may be not that easy to analyze ,so instead of that we may use IN operator. For ex: select max(sal) from emp where not in (select max(sal) from emp);
Why C++ is called object oriented programming language?
While solving the problem,everything in world is viewed as a object. And the the program contains different objects,which are used to call different data members and data functions. for ex: Animal is class and dog is a object of type Animal.
Why C-language is known as procedure oriented language?
Basically we divide the problem into parts, and start solving the problem by framing the solution into blocks.