[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 :: Control Instructions - Discussion

Home > C Programming > Control Instructions > MCQs Questions Discussion

21 / 33

What will be output of following c program?

#include<stdio.h>
int main(){
char c=-64;
int i=-32;
unsigned int u =-16;
if(c>i){
printf("pass1");
if(c<i)
printf("pass2");
else
printf("Fail2");
}
else
printf("Fail1”);

if(c==i)
printf("pass2");
else
printf("Fail2");
return 0;
}

APass1Pass2

BPass1Fail2

CFail1Pass2

DFail1Fail2

ENone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In :: TCS

Post Your Answer Here:     

No Discussion on this question yet!