turbo c++ vs gcc com

I am a newbe. i wrote a and compiled program in tc compiler. it gave correct outputs but when i submitted the code, wrong outputs are coming wen compiled through gcc compiler. pls help


code is here.

Turbo C/C++ is Adam’s time compiler…Avoid using Turbo C/C++ compiler,make a habit of using GCC…!
Happy Coding :slight_smile:


Simply, if you use turbo c++ you will never taste the real c++ flavor because you will always be forced to use libraries and syntax’s that are not standard. For ex conio.h.

“Keep Calm and Use GCC”


@pc:Check your Data type as per the given constraints…!

If you will use $ab as variable. It is valid in GCC but invalid in Turbo C.