So I'm i'll have my exam later today and was hoping to get some clarification on if and if else statements that do not have brackets and how to read them. I can read if else, and else if statements with brackets easily and they make sense to me but these have always confused me, here is a sample question.
if (x > 10)
if (x > 20)
printf("YAY\n");
else printf("TEST\n");
Aucun commentaire:
Enregistrer un commentaire