C Programming and Technical Programming

What will be the output for the following C program ..??

void main()
{
int i;
for(i=1;i<4,i++)
switch(i)
case 1: printf("%d",i);break;
{
case 2:printf("%d",i);break;
case 3:printf("%d",i);break;
}
switch(i) case 4:printf("%d",i);
}

Read Solution (Total 5)

C Other Question

For the following C program
#define AREA(x)(3.14*x*x)
main()
{float r1=6.25,r2=2.5,a;
a=AREA(r1);
printf("n Area of the circle is %f", a);
a=AREA(r2);
printf("n Area of the circle is %f", a);
}
What is the output?
Windows 95 supports

(a) Multiuser
(b) n tasks
(c) Both
(d) None