a = 9.0; b = 2.0*c; if ((a>0) || (b>0)) printf("Fixe!"); else printf(" Uma pena"); }
Fixe! Fixe! Uma pena Uma pena the program doesn't have output!
a = 3.0; switch (a+1.0) { case 1: printf("Fixe!\n"); break; case c: printf("Cool!\n"); printf("Ingles"); break; case 3: printf("Super!"); break; default: printf("Language?\n"); } }
a) switch cannot contain expressions (a+1.0) b) switch cannot have expressions of type float (a+1.0) c) In the structure switch we cannot use variables (case c:) d) Both b) and c)
an expression a condition an assignment an operation