main()

{

int i =0;j=0;

if(i && j++)

printf("%d..%d",i++,j);

printf("%d..%d,i,j);

}



main() { int i =0;j=0; if(i && j++) printf("%..

Answer / susie

Answer :

0..0

Explanation:

The value of i is 0. Since this information is enough to
determine the truth value of the boolean expression. So the
statement following the if statement is not executed. The
values of i and j remain unchanged and get printed.

Is This Answer Correct ?    13 Yes 7 No

Post New Answer

More C Code Interview Questions

main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }

2 Answers   Adobe, CSC,


How to palindrom string in c language?

6 Answers   Google,


void ( * abc( int, void ( *def) () ) ) ();

1 Answers  


Cau u say the output....?

1 Answers  


#include<stdio.h> main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); }

1 Answers  






Code for 1>"ascii to string" 2>"string to ascii"

1 Answers   Aricent, Global Logic,


What is the hidden bug with the following statement? assert(val++ != 0);

1 Answers  


#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }

2 Answers  


main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit = (bit >> (i - (i -1)))); } } a. 512, 256, 128, 64, 32 b. 256, 128, 64, 32, 16 c. 128, 64, 32, 16, 8 d. 64, 32, 16, 8, 4

2 Answers   HCL,


main() { int i=10; i=!i>14; Printf ("i=%d",i); }

1 Answers  


int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); }

1 Answers  


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

3 Answers   Infosys, Made Easy, State Bank Of India SBI,


Categories