summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2013-08-31 18:42:05 -0500
committerLevi Bostian <levi.bostian@gmail.com>2013-08-31 18:42:05 -0500
commit394ca958b3b61853b1fe8ec1063b3adb03239178 (patch)
treed1b1bab47d93a875c23a6c9d0ef3a6746542879b
parent41f65bb3415e7002ef171c351376c1c4d5336746 (diff)
Add more notes to null character in C
-rw-r--r--c.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/c.html.markdown b/c.html.markdown
index e6e2559e..90d0d358 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -27,7 +27,8 @@ Multi-line comments look like this. They work in C89 as well.
'\f' // new page
'\r' // carriage return
'\b' // backspace character
-'\0' // null character
+'\0' // null character. Usually put at end of strings in C lang.
+ // hello\n\0. \0 used by convention to mark end of string.
//print formatting:
"%d" // integer