C++ Programming and Technical

How to control the number of chars read in a string by using scanf()?

Read Solution (Total 0)

C++ Other Question

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
How to detect an end of a file?