A brief review of C language Li Hongqiang iOS development

Source: Internet
Author: User
Tags types of functions

//

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

Related Article

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.