Question 28Asked in DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

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; }
  1. A1
  2. BTRUE
  3. Cfalse
  4. D0
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.

From DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

This is question 28 of DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.