From c8b12bd824659879038d5d752b13d5c91fad8303 Mon Sep 17 00:00:00 2001 From: Joseph Adams Date: Fri, 10 Jan 2014 18:14:35 +0100 Subject: [PATCH 1/2] Added verb ("is") where it was missing --- c.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c.html.markdown b/c.html.markdown index 84856b32..99ff0d27 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -92,7 +92,7 @@ int main() { printf("%zu\n", sizeof(int)); // => 4 (on most machines with 4-byte words) - // If the argument of the `sizeof` operator an expression, then its argument + // If the argument of the `sizeof` operator is an expression, then its argument // is not evaluated (except VLAs (see below)). // The value it yields in this case is a compile-time constant. int a = 1; From c9a32b08e72a4c219a549497e24675e700870f26 Mon Sep 17 00:00:00 2001 From: Joseph Adams Date: Fri, 10 Jan 2014 18:28:34 +0100 Subject: [PATCH 2/2] Added missing comma in printf --- c.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c.html.markdown b/c.html.markdown index 99ff0d27..e55ff148 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -376,7 +376,7 @@ int main() { // or when it's the argument of the `sizeof` or `alignof` operator: int arr[10]; int *ptr = arr; // equivalent with int *ptr = &arr[0]; - printf("%zu %zu\n", sizeof arr, sizeof ptr); // probably prints "40, 4" or "40, 8" + printf("%zu, %zu\n", sizeof arr, sizeof ptr); // probably prints "40, 4" or "40, 8" // Pointers are incremented and decremented based on their type