sizeof is an operator that is evaluated at compile time
sizeof can receive as argument a variable, a constant or a type.
In case of a variable or constant, you can give the argument without
parentheses.
In case of a type, parentheses are mandatory

As a recommendation, use always parentheses

Also, the type that has sizeof is not int but size_t; in order to print,
the format used for printf is %zu

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.