C++ Programming and Technical Programming Program

What will be the output of following program?

{
int i=0;
switch(i)
{
case 0:
i++;
printf("%d..",i);
case 1:
printf("%d..",i);
case 1:
printf("%d..",i);
}
}


Options
1) 1..1..0
2) 0..1..1
3) 1..1..1
4) None of These

Read Solution (Total 0)

C++ Other Question

Define private, protected and public access control. How to control the number of chars read in a string by using scanf()?