main()

{

int i=5;

printf(“%d”,i=++i ==6);

}



main() { int i=5; printf(“%d”,i=++i ==6); }..

Answer / susie

Answer :

1

Explanation:

The expression can be treated as i = (++i==6), because == is
of higher precedence than = operator. In the inner
expression, ++i is equal to 6 yielding true(1). Hence the
result.

Is This Answer Correct ?    22 Yes 5 No

Post New Answer

More C Code Interview Questions

void main () { int x = 10; printf ("x = %d, y = %d", x,--x++); } a. 10, 10 b. 10, 9 c. 10, 11 d. none of the above

2 Answers   HCL,


how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!

8 Answers   GATE,


Write a procedure to implement highlight as a blinking operation

2 Answers  


main() { int i=_l_abc(10); printf("%d\n",--i); } int _l_abc(int i) { return(i++); }

2 Answers  


int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

1 Answers  






how to concatenate the two strings

1 Answers  


main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }

3 Answers  


main() { char *p; p="Hello"; printf("%c\n",*&*p); }

1 Answers  


what is variable length argument list?

2 Answers  


main() { main(); }

1 Answers  


Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped

1 Answers   IBM,


Sorting entire link list using selection sort and insertion sort and calculating their time complexity

1 Answers   Infosys, Microsoft, NetApp,


Categories