Home / MCQ Bank / Computer
Computer Control Structures

What will be the output of the following C code? #include <stdio.h> void main() { int x = 5; if (x < 1) printf("hello"); if (x == 5) printf("hi"); else printf("no"); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • hi

Related Computer Questions

A machine associated with card-based data processing is What is the benefit of using events and delegates in C#? RTF refers to ______ The default page size for word documents is also used in offices_____________________? What will be the output of the following Python expression if X = -122? print("-%06d"%x)