mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Added missing comma in printf
This commit is contained in:
parent
c8b12bd824
commit
c9a32b08e7
@ -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