[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Declarations and Initializations - Discussion

Home > C Programming > Declarations and Initializations > MCQs Questions Discussion

2 / 54

What is the output of this C code?

#include<stdio.h>
int main() {
int i,j;
j = 10;
i = j++ - j++;
printf("%d %d", i,j);
return 0;
}

A0 12

B12 12

C0 0

D12 0

Answer: Option (Login/Signup)

Show Explanation

i=10-11 //here j is post incremented twice

j=12


Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +2 -0 +
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +1 -0 +
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +2 -0 +
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +0 -1
    Report


Report Error

Please Login First Click Here