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

Code:
#include <stdio.h>

int main(){
    int n = 65;
    if (n >= 75) {
        if (n >= 95) {
            printf("Excellent");
        }
        else
            printf("Pass");
    }
    else
        printf("Fail");
}
  • (A) Excellent
  • (B) Pass
  • (C) Fail
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Fail

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
321
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
89%
Success Rate