-------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