[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 :: Increment-Decrement - Discussion

Home > C Programming > Increment-Decrement > MCQs Questions Discussion

1 / 45

What will be output of the following "c" code?

#include<stdio.h>
void main() { 
int i=-1,j=-1,k=0,l=2,m;  
m = i++ && j++ && k++ || l++;  
printf("%d %d %d %d %d",i,j,k,l,m); 
}

A0 0 1 3 1

B1 1 0 2 0

C2 2 1 3 1

DNone of these

E-1 -1 0 2 1

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Societe Generale

Post Your Answer Here:     

Reply    
Rate This: +3 -3 +1
    Report


Report Error

Please Login First Click Here