Questions tagged [syntax]

The tag has no usage guidance.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

Mario Less Comfortable, do-while loop problem

Hi everyone I made sure to do my research and go through the already posted questions. I am certain my while condition is wrong after research but don't understand the correction. my program runs but ...
0
votes
0answers
25 views

ps3 fifteen move and won : error : control may reach end of non-void function [-Werror,-Wreturn-type] }

Im so close to finish fifteen. I have a mistake about syntax with the last } for my function Move() and Won(). Here the error message when I compile : fifteen.c:279:1: error: control may reach end of ...
0
votes
2answers
123 views

How come you can declare variables in C in the middle of a block?

In Week 1 of CS50, I saw that David sir was declaring variables in the middle of the block...Isn't this a violation of the standard C syntax ? Aren't we supposed to declare the variable at the start ...