What will be the output of the following expression? int main() {
What will be the output of the following expression?
#include<stdio.h>
int main() {
printf("%d",7>=7);
return 0;
}
Show answerHide answer
Correct answer: (A) 1
Explanation
7 >= 7 is true, and in C a true relational expression has the value 1, so printf prints 1.