0

if return statement missing in the code it will be a logical error or syntax error ?

C++

19th Jul 2017, 7:12 AM
MMN
MMN - avatar
4 Réponses
+ 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.
19th Jul 2017, 7:20 AM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 1
0
19th Jul 2017, 7:30 AM
Poolchand Pandey
Poolchand Pandey - avatar
- 1
A logical error because it will probably not return what you wanted.
19th Jul 2017, 7:21 AM
Jojo
- 1
or 1, 2, 3..
19th Jul 2017, 7:31 AM
Jojo