Friday, October 3, 2008

Identify errors in this below program, if any. Otherwise give the O/p

void main()
{
float a=1.1;
int x=1;
for(a=1.0; a<3.0; a++) {
switch(x)
{
default:
printf("its default\n");
case 1 :
printf("its 1\n");
x++;
continue;
case (1+1) :
printf("its 2\n");
break;
}
}
}

No comments: