answersLogoWhite

0


Best Answer

No. Not only will C source code have to be recompiled to work on different machines, but implementations of platform-specific concepts (file system management, UI, etc.) will have to be rewritten completely to work on a new machine.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Yes, there are several platform dependencies in the C language, such as sizeof(int), and the behavior of arithmetic in overflow situations. Then there is the platform dependencies based on the contents of header files.

if suppose it has 8086 processor so it is work according to 8086...means it is fully platform independent and C is always work in machine code so there is different different machine code for different OS...so the C is platform independent but java is based on byte codes that's why java is run on any OS....and any processor

This answer is:
User Avatar

User Avatar

Wiki User

12y ago
Answer

No. C is not a platform independent language.

Answer

The language is platform-independent, the generated object/executable program is not. The standard libraries do have platform-dependent parts.

Answer

C is most certainly platform-dependent. The C specification contains numerous ambiguities and places where compiler and platform peculiarities cause differences in the code behavior.

For any example, look at any GNU program's code. There are plenty of #ifdef sections, which is the definition of platform-dependent.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

C-language is platform independent; the actual C-compiler, and the generated executable itself are platform-dependent.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

ansi C is platform independent and does not provide any hardware functions. Hardware functions are found in non ansi library's usually provided by the compiler manufacturer.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Binary executable files are always platform-dependent.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is c platform independent or dependent?
Write your answer...
Submit
Still have questions?
magnify glass
imp