What happened to C?

Discussion in 'Software' started by animatorStrike, Oct 1, 2004.

  1. animatorStrike

    animatorStrike <a href="http://www.acrodata.com/fun/waaa.jpg">Rid

    I was always wondering what happened to the original C programming language. Ever since C++ came around, that has been the choice for game programmers and such. C just got lost somewhere. Who here still uses C? We can't forget our roots! :p
     
  2. NeoNemesis

    NeoNemesis Moutharrhea

    Nah, c is prob. still the most widely used language when it comes to making games because its faster than c++. but i can't talk, i dont know it lol.
     
  3. Wookie

    Wookie Sergeant Major

    Neo, Ill bet you $5 the O/S you posted that from is written in C.


    C is mostly used for hardware programming, you may have heard of Embedded C etc and Operating systems and such. I believe most games have moved to C++ which is just C with improvements and more flexibility.

    I don't use C much because I can write the type of programs I need alot faster in Perl. C is pretty horrible for strings and text manipulation.

    Heres an example of two of the same exact programs first in C

    Code:
    #include <stdio.h>
    
    int main() {
    Int mynumber;
    mynumber = 5;
    printf("The Number Is ", mynumber);
    return 0;
    }
    
    

    Now here's perl
    Code:
    $mynumber = 5;
    print mynumber;
    



    I doubt C will die anytime soon. Its still out there. But some languages are easier for specific things.
     
  4. animatorStrike

    animatorStrike <a href="http://www.acrodata.com/fun/waaa.jpg">Rid

    I like C because it's powerful, but there are easier languages. I prefer to switch off. Maybe I'll try Perl. Looks easy. :p
     
  5. animatorStrike

    animatorStrike <a href="http://www.acrodata.com/fun/waaa.jpg">Rid

    I have a 600-page book on the C language and it states that C is like a migration path to C++. Most of the concepts taught through C are in C++. Here's a C code.

    Code:
    #include <stdio.h>
    int main()
    {
    int=num
    num=1
    
    printf("The first number is %d.\n", num);
    return 0;
    }
    
    Now here's a C++ code.

    Code:
    #include <iostream.h>
    int main()
    {
      cout<<"Hello World!";
      return 0;
    }
    
    C and C++ aren't that different. Most game programmers use C++, but I don't know why. C is just as powerful. Oh well... ;)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds