Tina Tina - 3 years ago 164
C Question

Getting error in the c Program regarding expected ; before token

error: expected expression before ';' token
graph[ ptr->count ].count- ;

I am getting the error shown when I compile my code in Geany. Can anyone please help what to do?

Answer Source

Assuming you’re trying to decrement...count by 1...you need one more minus sign, like this

int i = 10;

to be a valid expression in C/C++.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download