0
What is this code have a some compiler error?
8 Respuestas
+ 16
No error for me...
+ 16
as @Valentin, it is compiling normally.
no error in the code.
+ 3
Oh okay. So your function might not reach a return if you enter the same number for every input. If you add one last 'else', it should fix your problem. Like this:
// ......
else
if(d>a && d>b && d>c)
{return d;} }
else { /* new code is here*/
return -1;
}
+ 2
There could be a problem, just for functionality, if the largest number is entered twice. It compiles fine for me though.
+ 1
We shouldn't guess what the error is. Post it.
+ 1
thw website says that....
c 17 control reaches end of non-void function
[-Werror=retuen-type]
0
ya....
but a other website says that there is some compile error in c17
0
suggestions pls..