[HELP] expected token
#7

Quote:
Originally Posted by BornHuman
Посмотреть сообщение
Can you explain why that needs () when this doesn't? Just curious.
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.
Reply


Messages In This Thread
[HELP] expected token - by BornHuman - 01.12.2015, 23:07
Re: [HELP] expected token - by vassilis - 01.12.2015, 23:09
Re: [HELP] expected token - by BornHuman - 01.12.2015, 23:10
Re: [HELP] expected token - by vassilis - 01.12.2015, 23:12
Re: [HELP] expected token - by BornHuman - 01.12.2015, 23:13
Re: [HELP] expected token - by vassilis - 01.12.2015, 23:19
Re: [HELP] expected token - by Vince - 01.12.2015, 23:20
Re: [HELP] expected token - by BornHuman - 01.12.2015, 23:22
Re: [HELP] expected token - by AmigaBlizzard - 01.12.2015, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)