EXERCISES
- Explain why language supports type double and long when type int and float exists.
- What are the typical uses of type reference?
- Explain the two-step process of automatic type conversion during evaluation of expressions.
- Describe the syntax and state the advantage of typedef facility.
- Write a note on selecting an appropriate control structure for a particular task.
- Explain what is meant by term block. Comment on the scope of variables declared in a block.
- Read five real numbers (float) and find its average.
- Write a program to accept a character from the user in variable ch and display its ASCII value.
- Find the diameter, circumference and area of circle with given radius.
- Estimate the time needed for a stone to fall from height of 3000 ...
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.