Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int a = 1;
    if (a)
        printf("All is Well ");
        printf("I am Well\n");
    else
        printf("I am not a River\n");
}

A. Output will be All is Well I am Well

B. Output will be I am Well I am not a River

C. Output will be I am Well

D. Compile time errors during compilation

Answer: Option D


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures