Program not compiling/running on TurboC
I was trying to run the "Function with parameters" program displayed at the online video using TurboC(I typed a exactly same program shown in the video). But, it wasn't compiling/running and produced following error,
Error#1 - Function should return a value,
Error#2 - "c" is assigned a value that is never used.
However, it was compiling/running successfully when the same program ran at minGW. Why was it not compiling/running at TurboC? Can i continue use TurboC?
C-and-Cpp Functions 05-06 min 0-10 sec
Please continue to use minGW only. It is the standard compiler. Programs that work on minGW will work on linux machines also without any change. That is not the case with Turbo C compiler.
The reason why a program that works on minGW may not work on Turbo C (and vice versa) is that the default header files may be different.
We are not in a position to answer your questions on Turbo C.