C | Loops & Control Structure | Question 5

Last Updated :
Discuss
Comments

Predict the output of the below program: 

C
#include <stdio.h>  #define EVEN 0 #define ODD 1  int main() {     int i = 3;     switch (i % 2) {         case EVEN:             printf("Even");             break;         case ODD:             printf("Odd");             break;         default:             printf("Default");     }     return 0; } 

Even

Odd

Default

Compile-time error

Tags:
Share your thoughts in the comments