Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Received: from MAILQUEUE by VAYU (Mercury 1.21); 6 Jan 100 14:37:59 IST+530
From: "D.SURESH KUMAR" <EC19709@rect.ernet.in>
Organization: R.E.C., Tiruchirappalli, INDIA
To: genl%nb@rect.ernet.in
Date: Thu, 6 Jan 2000 14:37:42 IST+530
Subject: let us c
Priority: normal
X-mailer: Pegasus Mail v3.40
dear friends,
These are some of the frequently asked 'C' questions.Have a nice
time!!!
1. Is there a error ?
int i1;
switch(i1)
{
printf("The value of I1 is :");
case 1: printf("%d",i1);
break;
case 2: printf("%d",i1);
break;
default : printf("Invalid entry");
}
int i1;
switch(i1)
{
case 1: goto lure;
break;
case 2: printf("This is second choice");
break;
default: printf("This is default choice");
}
void fun(void)
{
lure: printf("This is unconditional jump");
}
int i;
switch(i)
{
case 1: printf("This is first choice");
break;
case j: printf("This is second choice");
break;
case 1+2+4: printf("This is the third and last choice");
break;
}
int no_fish;
no_fish=1;
if (no_fish==1)
printf("The water was to warm\n");
else ;
printf("The wates were all fished out\n");
from
D.Suresh
ec19709