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

program to Reverse a linked list

12 Answers   Aricent, Microsoft, Ness Technologies,


main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }

1 Answers  


posted by surbhi just now main() { float a = 5.375; char *p; int i; p=(char*)&a; for(i=0;i<=3;i++) printf("%02x",(unsigned char) p[i]); } how is the output of this program is :: 0000ac40 please let me know y this output has come

2 Answers   GATE,


main() { extern int i; i=20; printf("%d",sizeof(i)); }

2 Answers  


main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. “Hello world” c. Compile error d. “hello world”

5 Answers   HCL,






main() { int c=- -2; printf("c=%d",c); }

1 Answers   TCS,


write a program for area of circumference of shapes

0 Answers  


Find the largest number in a binary tree

7 Answers   Infosys,


Write a procedure to implement highlight as a blinking operation

2 Answers  


PROG. TO PRODUCE 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 Answers  


what is brs test reply me email me kashifabbas514@gmail.com

0 Answers  


write a c program to print magic square of order n when n>3 and n is odd?

1 Answers   HCL,


Categories