0
if return statement missing in the code it will be a logical error or syntax error ?
C++
4 odpowiedzi
+ 1
Syntax errors occur when a program does not conform to the grammar of a programming language, and the compiler cannot compile the source file. Logic errors occur when a program does not do what the programmer expects it to do.
+ 1
0
- 1
A logical error because it will probably not return what you wanted.
- 1
or 1, 2, 3..