Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 16758  / 2 Years ago, sat, april 9, 2022, 9:36:57

I want to learn C language . and i would like to know how I can practice it using Ubuntu 12.04



Is there any platform for it and if so how can I get it? Or can I learn it using the terminal?


More From » programming

 Answers
2

NOTE : Refer Online resources for C learning tutorials , i am only
linking the Tools and Platform available In Ubuntu ,needed for you to
begin with C.




To use C and C++ you will need to install the build-essential package.



sudo apt-get install build-essential


You can now compile C and C++ programs with GCC and g++ .



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.



You will find available Official Programming tools here and for Power Users Programming



To help you begin from Ground-Zero refer here for typing your Fisrt C program and how to compile it and another Example Tutorial using GCC.



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



Or



Directly use IDE ( Integrated Development Environment) such as Geany ,Anjuta or Code::Blocks IDE.



Example Using text editor



enter image description here



Then in terminal



gcc hello.c -o hello1   

./hello1


which will give O/P like



user@host:~/Desktop$ ./hello1
Hello! This is my first C program with Ubuntu 12.04

[#36851] Monday, April 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainbby

Total Points: 184
Total Questions: 115
Total Answers: 112

Location: Colombia
Member since Thu, Sep 29, 2022
2 Years ago
ainbby questions
Thu, Mar 23, 23, 10:26, 1 Year ago
Wed, May 10, 23, 00:10, 1 Year ago
Fri, Apr 15, 22, 10:11, 2 Years ago
;