main()

{

int i=5,j=6,z;

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

}

Answers were Sorted based on User's Feedback



main() { int i=5,j=6,z; printf("%d",i+++j); }..

Answer / susie

Answer :

11

Explanation:

the expression i+++j is treated as (i++ + j)

Is This Answer Correct ?    50 Yes 4 No

main() { int i=5,j=6,z; printf("%d",i+++j); }..

Answer / amita

error

Is This Answer Correct ?    0 Yes 21 No

Post New Answer

More C Code Interview Questions

code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123

1 Answers   HCL,


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,


why is printf("%d %d %d",i++,--i,i--);

4 Answers   Apple, Cynity, TCS,


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

8 Answers   GATE,


pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"

2 Answers  






void main() { int c; c=printf("Hello world"); printf("\n%d",c); }

2 Answers  


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

2 Answers  


#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }

2 Answers  


main() { if (!(1&&0)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above

3 Answers   HCL,


main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }

1 Answers   Zoho,


how can i search an element in an array

2 Answers   CTS, Microsoft, ViPrak,


write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?

1 Answers  


Categories