I want to learn C language . and i would like to know how i can practice on C language by using Ubuntu 12.04
And is there any platform for it and how to get it ? or learn it by Terminal and how to use it to ?
Thanks for reading :)
closed as off topic by jokerdino♦, Tachyons, Amith KK, izx, fossfreedom♦ Jul 15 '12 at 17:25
Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.
To use C and C++ you will need to install the build-essential package.
Where GCC stands for “GNU Compiler Collection”. GCC is an integrated distribution of compilers for several major programming languages. These languages currently include C, C++, Objective-C, Objective-C++, Java, Fortran, Ada, and Go.
To begin with : What you will basically need is an Editor from above , ( try Gedit as beginner, there are many to choose from) for compiling through Command Line
Example Using text editor
Then in terminal
which will give
If you want to use and practice only C, then you can use the default gcc compiler (which is installed by default as C compiler on almost every Linux distribution) . From your question, I suppose you also wanted to use this in terminal. Here I give a simple example of a C program using terminal.
Note: The details explanation of the program is beyond the scope of the answer.
You can check these link to learn more about gcc compiler and using C in Ubuntu.