Skip to content
Advertisement

What is the difference between the C programming language and C programming under linux?

What is the difference between the C programming language and C programming under Linux?

Are the syntax same in both them?

Or is the difference only when you execute the program?

Advertisement

Answer

The C language is governed by the ISO approved C standard and it does not take in to account the underlying platform on which you use C. So from the perspective of the language standard there is no difference, and a standard compliant program shall work correctly on both.

However in practical usage one needs to do platform specific things for ex: IPC mechanisms, multithreading, file access and so on which are specific to the platform, such functionality will vary from platform to platform because each will provide functionality specific to itself. Note that such functionality is not covered by the C language standard, so using it makes the program non portable across other platforms.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement