EXERCISES
  1. Discuss the salient features of C++ in comparison to C.
  2. Discuss two different methods of passing parameters to a function.
  3. Discuss the strengths and weakness of technique of recursion. Is task of finding nth Fibonacci number a good candidate for recursion?
  4. Write a program to find 100th Fibonacci number.
  5. Write a function to finds roots of quadratic equation.
  6. 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;    }

  7. Write a function pause(), which waits for pressing any key at every tenth invocation. [Hint: use a counter of type static.]
  8. 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.