Gotcha
int a = 2;
if (a = 1)
{
printf (“a is one\n”);
}
else if (a == 2)
{
printf (“a is two\n”);
}
else
{
printf (“The value of a is %d\n”, a);
}
Previous slide
Back to first slide
View graphic version