Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 7
    C is highly portable. You just have to recompile on the target platform, and avoid those few bits that are specifically and intentionally not portable. Commented Jun 2, 2015 at 17:51
  • 6
    @RobertHarvey: ...such as things as fundamental as the size of various primitives? ;) Commented Jun 2, 2015 at 17:56
  • 2
    Yes, those things. It is unfortunate that the problem exists, but the language is fully portable in every other way, and there are ways to make sure that primitive sizes work on all platforms. Commented Jun 2, 2015 at 17:57
  • 3
    @RobertHarvey: I would say C makes it possible to write portable programs, but it does not make it inherently easy. Commented Jun 2, 2015 at 18:01
  • 2
    @RobertHarvey: do you want to start a religious war? ;-) My favorite portable language is Python. Commented Jun 2, 2015 at 18:24