I need information about C

This is a discussion on I need information about C within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Who are the most common users of C and why !!! Sorry, but i'm new here and want to know ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    5

    Question I need information about C

    Who are the most common users of C and why !!!

    Sorry, but i'm new here and want to know more about this programming language.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    most common users of C: programmers
    why: because they want to program in C

    if this is a homework assignment, it would be much faster, detailed, and accurate if you did a search on any search engine for the c programming language.

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by nadroj View Post
    most common users of C: programmers
    why: because they want to program in C.
    I wouldn't quite agree with that. I'm a programmer and I've only had to use PURE C once in my life, and even then it was only because I was porting a library that was already written in C.

    I would say:
    Most common users of C: University students, and people who have no other choice (like when programming on a device that doesn't have a C++ compiler, or when updated existing C code).

    Why: Because they either don't know higher languages like C++, C# or Java, or because they have no choice other than C.

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    16
    Most common users are students by far I'd say.

    Why? It's primative enough you learn all the things that other languages do for you.

  5. #5
    Registered User
    Join Date
    Jul 2004
    Posts
    222
    A lot of users of C are hardware programmers who don't want to use assembly language or VHDL.

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,785
    Most C programmers are poor sods who just never learned how to use the superior C++
    Well, maybe a little truth in it, but it's true that I don't understand why everyone bothers with C so much nowadays.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by stanlvw View Post
    A lot of users of C are hardware programmers who don't want to use assembly language or VHDL.
    VHDL is not really a replacement for Assembler or C - VHDL is not a compilable language in the same sense as C, C++, Pascal, Fortran, Assembler, etc. Although most VHDL compilers support output of C or Assembler, the purpose of VHDL (and Verilog, along with a few other similar languages) is to describe chip designs, and the final production output would be a "transistor layout".

    As to the general question: Use the right tool for the job.

    C is a powerful, relatively low level, compact language. C++, as a general rule, tends to generate more code and the real advantage of C++ comes when you write large applications, where "reusing" base classes and the stronger isolation of objects and modules comes into play [I'm not at all saying that C++ can't be used in small apps - just like you CAN use a 18V Power Driver to screw in one screw - but a regular screwdriver will also be OK. But if you build a house, a hand-powered screwdriver will be less useful, and the 18V Power Driver comes to it's benefit - especially for those 4" #12 screws!].

    There are places where the language is dictated - in Windows NT based OS's [NT, 2K XP, Vista], it's pretty difficult to write kernel level drivers in C++ - it CAN be done, but it requires some work to tweak new/delete, you can't have global objects [because there is no support for construction/destruction, since drivers don't start with "main"].

    Conversely, Windows CE has C++ driver architecture [although I think there's some limitations - I don't KNOW, since I haven't been writing drivers for CE myself].

    Likewise, Linux doesn't "do" kernel code in C++.

    Most of this is not so much because C++ is unsuitable, but because SOME OF C++ is "difficult" to support in the kernel - and even if you have OS's written completely in C++, there are often limitations or restrictions to what you can do inside the kernel.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  8. #8
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    Quote Originally Posted by cpjust
    Quote:
    Originally Posted by nadroj
    most common users of C: programmers
    why: because they want to program in C.

    I wouldn't quite agree with that. I'm a programmer and I've only had to use PURE C once in my life, and even then it was only because I was porting a library that was already written in C.
    my answer was 98% sarcasm.

  9. #9
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    when a program is written in C - you need a C-programmer to continue work on this program.
    When your customer wants to by a code - and in most cases the customer prefers to buy a code in C, not C++ - you have to have a programmer on C to creatre this code - you will want to sell.

    Anyone thinking that C++ is better than C, and it is a reason not to continue the programming in C, will have to find another job...
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  10. #10
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,785
    Why does anyone want buy C code? That makes no sense to me.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Though matsp already said everything important...

    Quote Originally Posted by cpjust View Post
    Most common users of C: University students, and people who have no other choice (like when programming on a device that doesn't have a C++ compiler, or when updated existing C code).
    I would say C is used high-performance libraries (libpng, libjpeg etc) and generally medium-scale software for which performance is more important than time spent on making it.
    Quote Originally Posted by cpjust View Post
    Why: Because they either don't know higher languages like C++, C# or Java, or because they have no choice other than C.
    Nope. They just know it is the best language for doing that particular job.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 06-01-2009, 07:54 PM
  2. Assignment Help !! (Student information system)
    By ashb in forum C++ Programming
    Replies: 6
    Last Post: 03-12-2005, 04:32 AM
  3. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 06:27 PM
  4. Replies: 4
    Last Post: 03-31-2003, 11:49 PM
  5. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-20-2002, 11:35 PM

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