Ada vs C in computer language?

3 Answers

Relevance
  • ?
    Lv 5
    6 months ago

    Wow an Ada question!! I worked with Ada for several years quite a while ago. But not in the context of military contracts, which is what Ada was developed for, and is often required for. This is important, because when I talked about Ada with developers working on US DoD projects, they had to conform to usage guidelines which restricted what they could do with the language.

    C vs Ada: Short summary: C is a high level assembly language, which barely pays attention to things like type checking. Ada is a high level language, which comes close to, being Object Oriented but does not support things like inheritance.

    Ada is fanatical about type checking. For example: If you ask a C programmer what the logical OR of 0xC0 and 0x03 is then answer is 0xC3. If you ask an Ada programmer, the same question, the answer is that the logical OR operation is NOT defined for integers. It only defined for booleans.

    Why the different answers: Because C is a high level assembly language the C programmer automatically thinks in terms of the underlying computer instructions, rather than the logical definition of the abstract data type "Boolean".

    I have been working with C/C++, for a long time now, and I think I prefer it to Ada.

    • MysteryGuy
      Lv 5
      6 months agoReport

      C is the don i know. But someone told me planes and helcopter use Ada for their monitors etc.

  • 6 months ago

    I have never heard of Ada until now. C has always met my needs but upon reading about Ada, it seems that it could be more secure at the expense of potentially not letting a programmer who knows well enough to do their own thing.

  • EddieJ
    Lv 7
    6 months ago

    I've never seen anyone asking about Ada programming on this forum.

    On TIOBE index, Ada is #35 ( 0.325%) where C is #2 (13.3%) in popularity (based on their criteria).

    • MysteryGuy
      Lv 5
      6 months agoReport

      @eddie thanks. atm it's more of a hobby than work. But someone told me it's used in planes so was wondering if i should look into it.

Still have questions? Get your answers by asking now.