1 parent 1fb1eff commit d75b89aCopy full SHA for d75b89a
1 file changed
Chapter11/array2.c
@@ -1,9 +1,13 @@
1
// array2.c
2
// Chapter 11
3
-// <book title>
+// Learn C Programming
4
//
5
// Demonstrate arroy bounds issues.
6
7
+// Compile with:
8
+//
9
+// cc array2.c -o array2 -Wall -Werror -std=c11
10
11
12
13
#include <stdio.h>
@@ -19,3 +23,5 @@ int main( void ) {
19
23
// anArray[ 11 ] = 7; // Compiler error!
20
24
anArray[ x] = 0; // No compiler error, but runtime error!
21
25
}
26
+
27
+ // eof
0 commit comments