Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C

Compiler

clang HEAD 7.0.0 (https://github.com/llvm-mirror/clang.git 27d1a66dffa9424bcdadc7cd52cf2ae019e49889) (https://github.com/llvm-mirror/llvm.git ea81bb5e03db8e1db5f86000ed45e9851fb9e87c)

Options
Warnings
C11(GNU)
no pedantic

Author

anonymous

almost 7 years ago

$ clang prog.c -Wall -Wextra -std=gnu11
prog.c:6:27: warning: array index 9 is past the end of the array (which contains 9 elements) [-Warray-bounds]
    printf("b[9] = %d\n", b[9]);
                          ^ ~
prog.c:5:5: note: array 'b' declared here
    char b[] = {'N', 'i', 'c', 'e', ' ', 'y', 'o', 'u', '!'};
    ^
1 warning generated.
b[9] = 0
Exit Code:
0