Q. What will be the output of the following C code?

Code:
#include <stdio.h>
    int main()
    {
        int n = 25;
        char ch = -25;
        if (n < ch)
        {
            printf("Yes\n");
        }
        else
        {
            printf("No\n");
        }
    }
  • (A) 25
  • (B) Yes
  • (C) No
  • (D) Depends on the compiler
πŸ’¬ Discuss
βœ… Correct Answer: (C) No

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
245
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Monu Rathod
Publisher
πŸ“ˆ
99%
Success Rate