πŸ“Š C Programming
Q. What is the output of this code?
Code:
int a = 1;
if (a)
    printf("True");
else
    printf("False");
  • (A) True
  • (B) False
  • (C) 1
  • (D) Compile Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) True

Explanation: Any non-zero integer in condition is treated as true.

Explanation by: Mr. Dubey
Any non-zero integer in condition is treated as true.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate