Comparison operator in c/c++

main()

{

int a=10,b=10,c=5,d;

d=a
printf(“%d”,i);

}

Tutorial answer:

1

Debugging solution:

d=a
first it check(compare)a and b

10<10:these is false so it will give :0

0<5:these is true so it will give :1

Post a Comment

0 Comments