//
Main.m
- Brief Review
//
Created by Vic fan on 16/7/13.
copyright©2016 year Li Hongqiang . All rights reserved.
//
History of the C language
KRC 's Standard
Need to know the C language standard :
KRC
C89 Standard -ANSI C
C99
C11
what does a complete C language consist of?
Functions and declarations
The C language must have a main function , and the function name cannot have duplicates
C language is not a concept of function overloading
The main function is the entrance to the program, the main function ends , and the program ends
C Language programs can be placed in multiple files
A function of a class of functions is placed in a file or a folder
A set of pass-through types of functions , or related functions placed in a file
Basic syntax :
the format of the main function :
1) int main (void) {
...
}
2)int main (int argc Char*const argv[]) {
...
}
Notes :
/* Multiline comment , not nested , This is the standard note for the C language * /
starting with two slashes , the contents of the following are all ignored
C language involves the syntax :
function :
Variables - used to store temporary data
Branching structure
Loop structure
What is an array
What is a pointer?
Structure
Linked list
...
keywords for C language
three
A data type related
B Process Control - related
#import <Foundation/Foundation.h>
int Main (int argc, const Char * argv[]) {
@autoreleasepool {
//Insert code here ...
NSLog(@ "Hello, world!" );
}
return 0;
}
A brief review of C language Li Hongqiang iOS development