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);
}
#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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments