EXERCISES
- Discuss the salient features of C++ in comparison to C.
- Discuss two different methods of passing parameters to a function.
- Discuss the strengths and weakness of technique of recursion. Is task of finding nth Fibonacci number a good candidate for recursion?
- Write a program to find 100th Fibonacci number.
- Write a function to finds roots of quadratic equation.
- Find the size of largest array handled by your compiler if the data type of elements is
(i)char (ii) int (iii) double(iv) struct { char name[20]; double percentage; }
- Write a function pause(), which waits for pressing any key at every tenth invocation. [Hint: use a counter of type static.]
- Study any one random number generation algorithm and develop a function to ...
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.