mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-25 08:13:29 +03:00
Merge pull request #487 from jcla1/patch-1
Added verb/comma where missing
This commit is contained in:
commit
f23110ecf3
@ -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;
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user