Thread: trying to learn c

  1. #1
    Registered User
    Join Date
    Dec 2005

    trying to learn c

    hey im learning c at the moment but i have a windows and a linux system. Is it possible to be able to learn it for both operating systems? are there any noticable differences i should take note of?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Learn the language, not a platform. The C language doesn't care anything about what platform it's run on. If all you're using is the standard functions, you'll never have to worry about what platform you're on. Unless you're trying to be portable due to endianness, but ignore that for now.

    All of the standard functions behave the same way on either platform.

    Hope is the first step on the road to disappointment.

  3. #3
    Sr. Software Engineer filker0's Avatar
    Join Date
    Sep 2005
    West Virginia
    Although Quzah is correct that the C language is the same in all environments so long as you stick to the standard constructs and library calls, there are some significant differences between compilers in those libraries in how they extend the standard. Assuming that you're writing console (text-based) apps, the differences are minimal, and you won't really need to worry about those differences until you've learned more of the language. For graphical applications (that is, apps that create windows, dialog boxes, etc.) the differences are more obvious. Again, a lot has to do with the compiler and libraries you're using -- there are packages for Linux and Windows that allow you to create apps that can be compiled for both without source code changes.

    I'd suggest starting with console apps on Windows and text-based apps on Linux until you have a good feel for the language, and for programming in general.
    Insert obnoxious but pithy remark here

  4. #4
    Registered User
    Join Date
    Dec 2005
    Good luck Wizzard_IX

    The only advice I can give you is to perservere. Programming can be very challenging at times... but it is also very rewarding :-)

    Good luck.

    Hope to see you around over here.


    P.S. I'm learning C also.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    are there any noticable differences i should take note of?
    Don't use this.

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Looking to learn C++
    By Fuzzy91 in forum C++ Programming
    Replies: 40
    Last Post: 04-13-2006, 02:38 AM
  2. Book for Newbie trying to learn C
    By uthscsa19 in forum C Programming
    Replies: 23
    Last Post: 12-24-2005, 11:02 AM
  3. Can you actually learn c++ in 21 days?
    By Raeliean in forum C++ Programming
    Replies: 14
    Last Post: 07-27-2005, 03:41 PM
  4. You have to learn C in order to learn C++
    By gandalf_bar in forum A Brief History of
    Replies: 20
    Last Post: 07-16-2004, 10:33 AM
  5. Trying to learn guitar
    By Ben_Robotics in forum A Brief History of
    Replies: 12
    Last Post: 07-10-2003, 03:15 AM