Well, yes and no.
what means System Independent for you?
For me it's a Word which defines a compiled Output which will work on Windows, MacOSX and Linux with the same Binary.
If that definition is correct, C is not System Independent.
Well, yes and no.
what means System Independent for you?
For me it's a Word which defines a compiled Output which will work on Windows, MacOSX and Linux with the same Binary.
If that definition is correct, C is not System Independent.
Jakey24942942 (07-22-2018)
C IS NOT platform independent because you have to use a platform specific compiler. Each compiler will have its own platform specific header files and libraries.
A Good Example is comparing the creation of a sub process within your C application.
Linux will require a System call to fork() using unistd.h, while Windows will require a System call to CreateProcess() using Windows.h.
If you write C applications in pure ANSI C your source code will most likely compile on any platform because most C compilers support all ANSI C contents.
But in this case you are very limited because ANSI C knows nothing about e.g. OS dependent file systems or processes, threads.