main()
{
int i=3;
switch(i)
{
default:printf("zero");
case 1: printf("one");
break;
case 2:printf("two");
break;
case 3: printf("three");
break;
}
}
Answer / susie
Answer : :
three
Explanation :
The default case can be placed anywhere inside
the loop. It is executed only when all other cases doesn't
match.
| Is This Answer Correct ? | 18 Yes | 3 No |
void main() { int i=5; printf("%d",i++ + ++i); }
What is the hidden bug with the following statement? assert(val++ != 0);
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
Write a program using one dimensional array to assign values and then display it on the screen. Use the formula a[i]=i*10 to assign value to an element.
1 Answers Samar State University,
main() { int i=_l_abc(10); printf("%d\n",--i); } int _l_abc(int i) { return(i++); }
Give a one-line C expression to test whether a number is a power of 2.
Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
Sir... please give some important coding questions asked by product companies..
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD