summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
diff options
context:
space:
mode:
authorAlva Connor Waters <connor_waters@hotmail.com>2015-10-02 15:19:38 +0000
committerAlva Connor Waters <connor_waters@hotmail.com>2015-10-02 16:10:01 +0000
commitae86e4ebabb0c78c1bd8052e6ab5916446ef39c2 (patch)
tree3ddd608caca131527a9772493ba9286497e7646f /c++.html.markdown
parentf23d470961b952b3e6c3aa27ec2c48edd657baf0 (diff)
Clarify character literals
Diffstat (limited to 'c++.html.markdown')
-rw-r--r--c++.html.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/c++.html.markdown b/c++.html.markdown
index 8a7f5a59..1cf5508a 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -53,11 +53,11 @@ int main(int argc, char** argv)
// However, C++ varies in some of the following ways:
-// In C++, character literals are one byte.
-sizeof('c') == 1
+// In C++, character literals are chars
+sizeof('c') == sizeof(char) == 1
-// In C, character literals are the same size as ints.
-sizeof('c') == sizeof(10)
+// In C, character literals are ints
+sizeof('c') == sizeof(int)
// C++ has strict prototyping