Top

Discussion

Find the output of below C program

#include "stdio.h"

typedef enum{
    Male, Female
}SEX;

int main()
{
  SEX var = Male;
  printf("%d",var);
  return 0;

}

 

  • A.Male
  • B.1
  • C.Compilation Error

Answer:

No comment is present. Be the first to comment.
Loading…

Post your comment