Professional Documents
Culture Documents
Q2. How many times will the following program will print “examination”?
#include<iostream.h>
void main( )
{
while(1)
{
cout<<”examination”
}
}
Program 2
# include<iostream.h>
# include <conio.h>
void main()
{
int x,y=0;
if((x=y=1)==1)
cout<<x<<" "<<y;
getch();
}