ExamVeda
Login
Home
This question belongs to C Program Control Structures
Control Structures
?

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

Answer & Solution
Correct Answer: Option B

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

Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.