#include<stdio.h>
#include<conio.h>
void main()
{
int a=(1,2,3,(1,2,3,4);
switch(a)
{
printf("ans:");
case 1: printf("1");break;
case 2: printf("2");break;
case 3: printf("1");break;
case 4: printf("4");break;
printf("end");
}
getch();
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Code Interview Questions

Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

0 Answers  


void main() { int i=5; printf("%d",i+++++i); }

3 Answers  


How can you relate the function with the structure? Explain with an appropriate example.

0 Answers  


main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }

1 Answers  


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  






Is the following code legal? typedef struct a { int x; aType *b; }aType

1 Answers  


main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(ā€œ%dā€ ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(ā€œ%d ā€ ,*p); p++; } }

1 Answers  


main() { printf("\nab"); printf("\bsi"); printf("\rha"); }

3 Answers  


#include<stdio.h> int main() { int a=3,post,pre; post= a++ * a++ * a++; a=3; pre= ++a * ++a * ++a; printf("post=%d pre=%d",post,pre); return 0; }

3 Answers  


main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 Answers  


main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }

2 Answers  


In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }

1 Answers  


Categories