What is the effect of the following code?

int main() 

    int option = 4;

    switch (option/2)
    {   
        case 1: printf ("EAST ");
        case 2: printf ("WEST ");
        case 3: printf ("NORTH ");
        case 4: printf ("SOUTH ");     
    }
}

1
WEST
2
Syntax error because break is missing
3
WEST NORTH SOUTH
4
Syntax error because default case is missing

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation