Examveda
Examveda

What will be the output of the given program?
#include<stdio.h>
void main()
{
      int value=0;
      if(value)
            printf("well done ");
      printf("examveda");
}

A. well done examveda

B. examveda

C. complier error

D. None of these

Answer: Option B

Solution(By Examveda Team)

As the value of variable value is zero so, it evaluates to false in the if condition.


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures