01.12.2015, 23:22
Quote:
Sizeof is an operator, not a function. Both ways of writing (with and without brackets) are correct and it is just a matter of personal preference. I tend to always use the brackets, except when sizeof appears in a function header, because I'm weird like that.
Anyway, in your original code I count three opening brackets and only two closing brackets. The compiler is expecting another parameter (hence, expected comma) because the statement isn't properly closed. |
Thank you both so much.