From 07b5c4934ce98d9f3431c23d5e56a46faba77360 Mon Sep 17 00:00:00 2001 From: mhauserr Date: Tue, 20 Aug 2013 23:50:15 +0100 Subject: Update c.html.markdown Added explanation of size_t --- c.html.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/c.html.markdown b/c.html.markdown index 24a96463..ae66fa78 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) -- cgit v1.2.3