Skip to content

Instantly share code, notes, and snippets.

@jeffs
Created January 14, 2021 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffs/09f344cf0ccac823e1f677cc995a6b66 to your computer and use it in GitHub Desktop.
Save jeffs/09f344cf0ccac823e1f677cc995a6b66 to your computer and use it in GitHub Desktop.
$ cc main.c
main.c:4:13: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
puts("42" + 1);
~~~~~^~~
$ ./a.out
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment