I've been trying to compile cash.c, but for a reason, it always says I have an error in line 7... could someone help me find the error...? I tried different things to try and make it work but it does't seem to be working.

Thank you so much :)


Here's what my code looks like

enter image description here

1 Answer 1


Get rid of the semicolon on line 6.

A semicolon there marks the line as a function signature. You'll learn more about that later.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .