0

enter image description here

I have been trying to debugg the program for a while but am not able to figure out what the error in line 9 is as this was the code provided by the courses and I didn't make any changes. Any help would be appreciated. Thank you in advance.

2 Answers 2

1

I compared your code to my and found the case of error.

When you declare constant in C, you should do like this: #define {name of constant} {number}

Without semicolons by the way.

1
0

The problem with line 9 is syntax. This is a function declaration. It has square brackets where it should have parentheses.

BTW, there's nothing wrong with the const declarations.

If this answers your questions, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

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