Easy C Programming in Linux

Source: Internet
Author: User

Into the pit Ubuntu has 4, 5 days, at that time a variety of not accustomed to, but now gradually like this simple and generous display interface and fast and efficient command line mode, a variety of features do not have a web version, very good.

What makes me wonder now is that Linux C programming is so simple and efficient. Remember a freshman to learn C language, also have to install a Microsoft VC + + 6.0 compiler, it is not as efficient as now (there is force lattice).

Next, you will describe the basic C programming steps under Linux.

1. Preparation Tools

GCC, libutils, and vim can be found with the following command line, and are generally available.

gcc-V

2. Writing Source HELLOWORLD.C

" stdio.h " int Main () {        printf ("Hello world! " );         return 0 ;}

3. Compiling the source code

4. Run the executable file

./helloworld

is not so simple, programming is actually so concise and convenient.

Easy C Programming in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.