summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-08-27 20:57:08 -0700
committerAdam Bard <github@adambard.com>2013-08-27 20:57:08 -0700
commitfb3e324dd96a354351c3eecd4326e87387f9b2c4 (patch)
treef43d5d27c07662f63750f3a84e03a25832e4b544
parente1922e70a9f2532ceae94b9346172cfb4248df00 (diff)
parentc4c8c02df970c028bd96f2e133a8bf76d5811fc5 (diff)
Merge pull request #269 from mhauserr/master
tiny one line addition to c docs
-rw-r--r--c.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/c.html.markdown b/c.html.markdown
index 24a96463..3acf1a4d 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -81,6 +81,7 @@ int main() {
// is not evaluated (except VLAs (see below)).
// The value it yields in this case is a compile-time constant.
int a = 1;
+ // size_t is an unsiged integer type of at least 2 bytes used to represent the size of an object.
size_t size = sizeof(a++); // a++ is not evaluated
printf("sizeof(a++) = %zu where a = %d\n", size, a);
// prints "sizeof(a++) = 4 where a = 1" (on a 32-bit architecture)