Merge pull request #487 from jcla1/patch-1

Added verb/comma where missing
This commit is contained in:
Nami-Doc 2014-01-10 09:55:30 -08:00
commit f23110ecf3

View File

@ -92,7 +92,7 @@ int main() {
printf("%zu\n", sizeof(int)); // => 4 (on most machines with 4-byte words) 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)). // is not evaluated (except VLAs (see below)).
// The value it yields in this case is a compile-time constant. // The value it yields in this case is a compile-time constant.
int a = 1; int a = 1;
@ -376,7 +376,7 @@ int main() {
// or when it's the argument of the `sizeof` or `alignof` operator: // or when it's the argument of the `sizeof` or `alignof` operator:
int arr[10]; int arr[10];
int *ptr = arr; // equivalent with int *ptr = &arr[0]; 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 // Pointers are incremented and decremented based on their type