Thursday 2 December 2010

What is the output of the following program?

#include iostream.h
main ( ) {
int RollNo;
int rollno;
RollNo = 5;
rollno = 8;
cout << “Roll No is ” << rollno; }

Program should not compile due to missing <> from following statement
#include iostream.h 
if we ignore this then output should be 
Roll No is 8

No comments:

Post a Comment