Corrections in CS201 Handouts
Page No. 29
In the topic Use of Operators, problem statement is incorrect.
Error:
Write a program that takes a four digits integer from user and shows the digits on the
screen separately i.e. if user enters 7531, it displays 7,5,3,1 separately.
Correction:
Write a program that takes a four digits integer from user and shows the digits on the
screen separately i.e. if user enters 7531, it displays 1,3,5,7 separately.
Page No. 95
In the topic Function Calling, program contains error.
Error:
Function prototype should contain asterisk “*’.
Correction:
#include <iostream.h>
void square(double *);
main()
{
…..}
Page No. 104-105
In the topic Sample Program 1, program contains error.
Error:
Value of variable i must be initialized before the start of do while loop.
Correction:
#include <iostream.h>
main( )
{
int c [ 100 ] ;
int z , i = 0 ;
do
{
…..}