Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to start C programming?  (Read 16177 times)

0 Members and 1 Guest are viewing this topic.

jpotts

    Topic Starter


    Rookie

    • Experience: Beginner
    • OS: Unknown
    How to start C programming?
    « on: December 09, 2010, 06:57:10 AM »
    After using windows for to make batch files for a while, i decided to upgrade. I now have Ubuntu and am going to learn C programming. How do i start? do i need a program to write the scripts in, like eclipse for Java or what?
    Thanks
    Pottsie

    Linux711



      Mentor

      Thanked: 59
      • Yes
      • Programming Blog
    • Certifications: List
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 7
    Re: How to start C programming?
    « Reply #1 on: December 09, 2010, 08:24:59 AM »
    Quote
    How do i start?
    Open the terminal and type gcc to see if the compiler is installed.
    If so, you can proceed to write a program using a text editor and save it as program.c
    Then you can use gcc to compile it from the terminal.
    If not, you can install it from the package manager.

    Quote
    do i need a program to write the scripts in, like eclipse for Java or what?
    I am not very familier with what is the best IDE.
    YouTube

    "Genius is persistence, not brain power." - Me

    "Insomnia is just a byproduct of, "It can't be done"" - LaVolpe

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: How to start C programming?
    « Reply #2 on: December 09, 2010, 04:37:12 PM »
    kdevelop is a good IDE for C and C++, it supports other languages too I think.

    sudo apt-get install kdevelop at a terminal to install; or use the package manager.
    I was trying to dereference Null Pointers before it was cool.

    adrielsmith

    • Guest
    Re: How to start C programming?
    « Reply #3 on: December 18, 2010, 01:30:26 AM »
    For starting c programing you should know about the c language keywords, header files, data types. First of all you should start simple program like print hello.

    #include < stdio.h>

    void main()
    {
        printf("\nHello World\n");
    }

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: How to start C programming?
    « Reply #4 on: December 20, 2010, 11:31:54 AM »
    Programming in C is almost programming in assembly.
    Learn C++. It is a 'middle' language.It nis much easier to get started.
    Unless you are the academic type, I would not recommend spending much time learning C or other low-level-languages.
    Have you studied any high-level languages?
    If not, why not?
    Most work being done today is top-down development.

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: How to start C programming?
    « Reply #5 on: December 20, 2010, 12:19:25 PM »
    Programming in C is almost programming in assembly.
    Learn C++. It is a 'middle' language.It nis much easier to get started.

    um... no it's not. C++ is a superset of C. Therefore by definition it will be harder to learn. It's sort of like saying "don't bother learning basic arithmetic, you should start with calculus"

    I was trying to dereference Null Pointers before it was cool.

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: How to start C programming?
    « Reply #6 on: December 20, 2010, 01:38:11 PM »
    um... no it's not. C++ is a superset of C. Therefore by definition it will be harder to learn. It's sort of like saying "don't bother learning basic arithmetic, you should start with calculus"
    Yes, I failed arithmetic. And later I failed Algebra.
    Set me back so I did not get to take calculus.
    Should have skipped arithmetic.

    Dr Jay

    • Malware Removal Specialist


    • Specialist
    • Moderator emeritus
    • Thanked: 119
    • Experience: Guru
    • OS: Windows 10
    Re: How to start C programming?
    « Reply #7 on: December 20, 2010, 07:16:40 PM »
    Actually, I would say that C and C++ are agreeably close in difficulty to learn. But, for beginners - C is essentially easier to dive in to than C++. As for experienced learners in the programming field, C++ should not be too aggressive. ;)

    ~DMJ
    ~Dr Jay

    2x3i5x



      Expert
    • Thanked: 134
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 10
    Re: How to start C programming?
    « Reply #8 on: December 22, 2010, 12:27:55 PM »
    If you are on windows, Microsoft Visual C++ Express Edition is good compiler.


    C++ includes the stuff you can do in C. Anyway, cplusplus.com has a great tutorial so you may want to start here!


    Dr Jay

    • Malware Removal Specialist


    • Specialist
    • Moderator emeritus
    • Thanked: 119
    • Experience: Guru
    • OS: Windows 10
    Re: How to start C programming?
    « Reply #9 on: December 22, 2010, 08:47:21 PM »
    I agree. cplusplus.com is pretty good. I am on a couple of other sites that I learned on.
    ~Dr Jay

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: How to start C programming?
    « Reply #10 on: December 22, 2010, 08:51:36 PM »
    C++ includes the stuff ... cplusplus.com has a great tutorial so you may want to start here!
    Way to go! Greet link! And it is FREE!

    sugarfish



      Newbie

      • Experience: Beginner
      • OS: Unknown
      Re: How to start C programming?
      « Reply #11 on: January 15, 2011, 08:29:24 AM »
      I'm new here but I wanted to give my 0.02 worth...

      It's generally accepted wisdom that C and C++ are close enough that you may as well start with C++. The major difference is the object model and it's better to get started with objects sooner than later.

      I like Geany for C/C++. It runs on Win and *Nix and it can run C/C++ directly (as long as you have a compiler available).

      jhonas



        Rookie

        Thanked: 1
        • Experience: Beginner
        • OS: Unknown
        Re: How to start C programming?
        « Reply #12 on: January 20, 2011, 12:14:42 AM »
        I recommend w3schoos.com is also good !!

        2x3i5x



          Expert
        • Thanked: 134
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 10
        Re: How to start C programming?
        « Reply #13 on: January 20, 2011, 12:55:55 AM »
        I recommend w3schoos.com is also good !!

        you are recommending a non-functional website  ???