Like Tree4Likes
  • 2 Post By manasij7479
  • 2 Post By King Mir

Is C++ or C language is a high Level language?

This is a discussion on Is C++ or C language is a high Level language? within the C++ Programming forums, part of the General Programming Boards category; I am little confuse about C++ language that it is a high level language or low level. thanks...

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    1

    Unhappy Is C++ or C language is a high Level language?

    I am little confuse about C++ language that it is a high level language or low level. thanks

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,528
    Quote Originally Posted by uthmankhale View Post
    I am little confuse about C++ language that it is a high level language or low level. thanks
    Depends on the 'level' you're in.

    For a person fiddling with hardware, it is high level.

    For a designer refusing to come down from UML diagrams, it is low level.

    C++ is a very flexible language, allowing you to do whatever you want to, provided you know it well enough and exercise some caution.
    Last edited by manasij7479; 08-24-2011 at 12:04 AM.
    GReaper and King Mir like this.
    Manasij Mukherjee | gcc-4.9.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  3. #3
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Quote Originally Posted by uthmankhale View Post
    I am little confuse about C++ language that it is a high level language or low level. thanks
    Any language that is machine independent is a high level language. Thus C and C++ are high level languages.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    2,053
    In some contexts anything more versatile than assembly is a high level language.

    In other contexts, C and C++ allow for doing things outside the abstraction of the language, such interfacing with using memory mapped hardware. These are considered low level operations. Another way it which the two languages are low level is that the language itself has primitive operations that are very similar to assembler instructions.

    In these contexts C because of with the kind of instructions it has cannot be called anything but a low level language. C++ however has a detailed class model, with highly abstract concepts such as polymorphic classes that are characteristic of other high level languages, such as Java. Therefore C++ has the capability of functioning as a high or low level language.

    In other contexts still, C and C++ do not provide the efficiency of expressing concepts compared to a language like UML. In this contex, C, C++, Java, assembler, and machine code, are all low level.

    But though the above suggests a scale of low to high, there is no formal enumerated scale of how high a language is. If I were to make an enumerated list of low to high computer behavior descriptions, and claim it as a good defining standard, someone will inevitably disagree with my choices.
    stahta01 and AndrewHunter like this.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

  5. #5
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    I do agree, however if you were in the need a hard and fast definition, the only real way to segregate would be whether or not the language was machine independent. It is true that C, and for that matter, almost any language would allow you to directly manipulate hardware (heck you could do it with BASIC) however that does not define the language. Standard C/C++ is indeed machine independent, whereas assembly for instance is not.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  6. #6
    Registered User
    Join Date
    Apr 2006
    Posts
    2,053
    Why do you want a hard and fast definition for everyone?

    An OOP programmer might find it useful to talk about UML and simmilar future languages as compared to pure programing languages like Java. A computer scientist might find it useful to differentiate between purely abstract languages like Haskell and languages with lots of things that are machine dependent, like C. An embedded systems programmer may find it useful to differentiate between machine independent languages and assembly. A computer architecture designer may find it useful to call anything not written in Verilog or VHDL as high level. And to approach the very low end, someone involved in transistor miniaturization may consider anything not analog high level logic.

    To standardize the definition would remove the usefulness of the term within specific fields.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 08-25-2010, 09:04 AM
  2. C++ for a low-level language
    By lruc in forum C++ Programming
    Replies: 28
    Last Post: 09-01-2008, 02:51 AM
  3. The Best Language For Editing At the Binary level?
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 08-31-2005, 05:13 PM
  4. C++ is a low-level language
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 06-22-2002, 04:25 AM
  5. nVidia's NEW high-level programming language for 3d graphics
    By Captain Penguin in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-13-2002, 09:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21