sizeof operator (it’s a C keyword, not a plain function) refers to the automatically allocated variable (which might be an array or a pointer), not to the data a pointer might be pointing to.
- 8. Important C Syntax that Textbooks Often Do Not Cover
- from 21st Century C, 2nd Edition
- Publisher: O'Reilly Media, Inc.
- Released: October 2014