[HELP] expected token
#8

Quote:
Originally Posted by Vince
Посмотреть сообщение
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.
You're a genius. I'm suuuper tired and really mad at myself for not catching that.

Thank you both so much.
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: 2 Guest(s)