OC and C language comparison

Source: Internet
Author: User

Description: Comparative memory is relatively easier to remember firmly, understand the C language relative to OC is not too difficult, OC is the C language extension, backward-compatible C language.

Comparison of source file suffix names

1.C Language source files

. h: Header files

. C: Source files

. O: Target file

. Out: Executable file

2.OC Language source files

. h: Header files

. m: Source file

. mm:oc++ Source Files

Data type Comparison

Common types in the C language:

Common types in OC

Note: New types in OC

Keyword comparison

Attention:

1.OC compatible with C language, C language keywords can be used in OC

2. If you use the keywords in oc, some keywords need to start with "@"

Add: The basic usage of "@"

1. Represents a string object that converts C into OC NSString

Most of the keywords in 2.OC start with @

OC and C language comparison

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.