The first program of the C language "Hello world!"

Source: Internet
Author: User

1. Introduction to C language

C language is a general-purpose computer programming language, widely used. The goal of the C language is to provide a programming language that compiles, processes low-level memory, produces a small amount of machine code, and can run without any running environment support in an easy way.

Although the C language provides a lot of low-level processing features, but still maintain a good cross-platform features, a standard specification written in the C language program can be compiled on many computer platforms, and even include some embedded processors (microcontroller or MCU) and supercomputers and other operating platforms.

in the 1980s, in order to avoid the differences in C language grammar used by the development companies, a complete set of international standard grammar, called ANSI C, was set up by the American National Standards Bureau for C language, as the original C language standards.

2, common C language programming software

Novice recommended to use dev C + +, a professional point can be used Microsoft Visual Studio 2017,2017 Microsoft also launched the free version and so on.

3, do a small program, cultivate programming interest----"Hello World"

Hello world means "hello, good". Because the C programme Language used it as the first demonstration program, it was very well known that later programmers continued the habit when they learned to program or debug the device.

here we take dev C + + as a demo  

After installation for a simple configuration, this will not demonstrate the

(1) First into the software is this look.

(2) Click File--New--Project Select C Project, then select Console Application

(3) Edit the project name and select Save Directory

(4) Edit code

#include <stdio.h><windows.h>int  main () {    printf ("Hello world!\n");    System ("pause");     return 0 ;}

(5) Click to run-compile and compile successful click Run-run

End: So, a simple program is written with our hands.

Snow and Rainbow Original

The first program of the C language "Hello world!"

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.