Dark Horse Programmer-C Learning Note-The first C language program

Source: Internet
Author: User

-------iOS training, Android training, Java training, and looking forward to communicating with you! ----------

  I. First C language ProgramSource code: code written by the programmer himselfcompile: The process of translating the source code into 0 and 1 to generate an. o File destination fileLink: Integrate the target file with the C language library file to generate an. out fileRun shortcut key: Command + R Code Demo:
1 #include <stdio.h>2int main (int argc,Char *argv[]) { 3      4      printf ("hello Heima"); 5 6    return 0 ; 7 8  }
 
Summary:The basic unit of a 1.C language program is a function2. The entrance to the program is the main function3. Each statement must be followed by a semicolon, mark the sentence is finished4. Chinese and Chinese symbols are only available in the middle of comments and double quotes, and no other locations canThe contents of the 5.print output must be written in the middle of the double quotation marks in the English state6. The method name must be followed by a ()  two. Naming rules for identifiers1. Only 26 letters in the case, 10 Arabic numerals 0~9, underline composition2. Strictly case-sensitive, such as test and test are 2 different identifiers3. Cannot start with a number4. You cannot use keywords as identifiers

Dark Horse Programmer-C Learning Note-The first C language program

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.