Credits

Wednesday, February 11, 2009

Brain Twister

Spot the mistakes from the following C's conditional statements.

if answer=’Y’
printf(“Your answer is correct.”)
then printf(“Your answer is wrong.”);


switch num
{
case 1=printf(“one”);break;
case 2=printf(“two”);break;
default: printf(“Not in the option.”);
}

AddThis