Can we say that C++ is platform dependent?
I know that C++ uses compiler, and those compiler are different for different platforms. When we compile C++ code using co
C++ is not platform dependent.
There are other platforms out there besides Windows.
There are other processors out there besides the X86 or Pentium that Windows runs on.
The is an area called "Embedded Systems" which uses the C++ language on many other kinds and brands of operating systems and processors. For example, there are DSPs, the good old 8051 and the ARM series.
The reason high level languages were invented is so that a program can be written once but compiled (translated) to other platforms. For example, a platform independent C++ program can be compiled for a PDP machine, Windows, Mac, Unix, Vrtx, Windriver, ARM processor, all without changing the program.
In general executables are platform dependent.