summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormhauserr <michael.hauser-raspe@cantab.net>2013-08-21 00:02:33 +0100
committermhauserr <michael.hauser-raspe@cantab.net>2013-08-21 00:02:33 +0100
commitc4c8c02df970c028bd96f2e133a8bf76d5811fc5 (patch)
tree120db76b0eb60408580a2a167f3e4b9c351ed727
parent07b5c4934ce98d9f3431c23d5e56a46faba77360 (diff)
Added explanation of size_t
-rw-r--r--c.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/c.html.markdown b/c.html.markdown
index ae66fa78..3acf1a4d 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -81,7 +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 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)