int n=1;
while(1)
{
switch(n)
{
case 1:printf("a");
n++;
continue;
case 2:printf("b");
n++;
continue;
default : printf("c");
break;
}
break;
}



int n=1; while(1) { switch(n) { case 1:printf("a"); n++; continue; case 2:printf(&..

Answer / arun

abc

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Interview Questions

Is that possible to add pointers to each other?

0 Answers  


What does sizeof int return?

0 Answers  


what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }

3 Answers  


What are the __date__ and __time__ preprocessor commands?

0 Answers  


Write a progarm to find the length of string using switch case?

0 Answers   TCS,


main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }

3 Answers   CSC,


What are the advantages and disadvantages of pointers?

0 Answers  


WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES

1 Answers  


What is a c token and types of c tokens?

0 Answers  


what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

0 Answers  


a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

6 Answers   Geometric Software,


Categories