Platform dependent language like C, C++?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanketbarot
    New Member
    • Sep 2006
    • 30

    Platform dependent language like C, C++?

    Why are C, C++ called platform dependent languages ? what does it mean?
    Last edited by Niheel; Oct 6 '06, 07:12 PM.
  • tyreld
    New Member
    • Sep 2006
    • 144

    #2
    C and C++ are not per say platform dependent. There are several standards for the basic language features of C and C++. These basic language features in theory should be supported on any platform that has a standard compliant compiler. It is the use of libraries bound to a particular platform that make a C or C++ program platform dependent..

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Originally posted by tyreld
      It is the use of libraries bound to a particular platform that make a C or C++ program platform dependent..
      Or the programmer making assumptions that cause the code to be platform specific, for instance assuming that the platform is big or little endian will necessarily reduce the code to only working on platforms displaying that property.

      Comment

      Working...