Platform dependency in C

 

  • C & C++ languages are platform dependent.
  • Using C & C++ languages, we can develop only standalone apps.
  • C-compiler is OS-dependent.
  • C compiler translates source code into specific OS understandable instructions.
  • Hence the instructions generated by C-compiler become platform-dependent.
  • Different Platforms understand different file types.
  • For example…

Windows —> .exe files
Mac —> .dmg files
Linux —> .rpm files

 

Platform Dependency

Platform Dependency

Share this