WHY C LANGUAGE IS NOT PLATFORM INDEPENDENT

WHY C LANGUAGE IS NOT PLATFORM INDEPENDENT

C  is not a platform independent language. But java is java is platform independent. the reason is nothing but java has JVM java virtual machine.

Then what is java virtual machine.

The JVM is nothing but a program which verifies and identifies particular operating system and provides the related executable code for that operating system.


so we can say that JVM is a platform independent code. For every different platform there is different JVM code is required.

So, we can say that in future if any new operating system is develops Oracle has to provide the new and compatible JVM for that Operating System.

So, c and c++ developers not provided like this feature so c and c++ remained as platform independent up to now.