We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd5410 commit 6a4c48eCopy full SHA for 6a4c48e
Chapter 5/a.exe
0 Bytes
Chapter 5/main.c
@@ -35,6 +35,14 @@ int main () {
35
printf("Storm");
36
else // speed > 63
37
printf("Hurricane");
38
+ printf(".\n"); // end constructed sentence
39
+
40
+ // Question 11:
41
+ /* Is the following IF statement legal in C? */
42
+ int n = 0;
43
+ if (n >= 1 <= 10)
44
+ printf("n is between 1 and 10\n");
45
+ // Evaluates incorrectly because the first statement is tested, then the right statement is tested (and will always be true when n = 0
46
47
return 0;
48
}
0 commit comments