Single Choice Not Set

QChoose the correct output for the following program.

#include<stdio.h> 
void main()
 {
  1 < 2 ? return 1: return 2;
 }

ID: #1199 Operators and Enums in C Language 650 views
Question Info
#1199Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A returns 1
  • B varies
  • C returns 2
  • D Compile time error
Correct Answer

Explanation

Option D

Share This Question

Challenge a friend or share with your study group.