Answer to Question #293738 in Engineering for Jagruti

Question #293738

What will be the output of following program? Justify your answer.


#include<stdio.h>


void main()


{


int a,b,c;


a=9;


b=10;


c=(b<a||b>a);


printf(“\n c=%d”,c);


}

1
Expert's answer
2022-02-06T11:35:32-0500
#include<stdio.h>






void main(){
	int a,b,c;
	a=9;
	b=10;
	c=(b<a||b>a);
	//b<a = true: 1
	//b>a = true: 1
	//output: 1 || 1 = 1
	printf("\n c=%d",c);
	
	scanf("%d",&a);
}





Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS