+ 4

why is return necessary

18th Jun 2016, 6:00 AM
Shubham Priyam
Shubham Priyam - avatar
3 Respostas
+ 3
Because the function must return something if it has a return type. If ur function should not necessarily return anything use void as a return-type
18th Jun 2016, 6:04 AM
Sardor
Sardor - avatar
0
it also c++ to automatically fill it or else errors will occur in your program
11th Jan 2017, 7:07 PM
Ryan Burgess
Ryan Burgess - avatar