Objective-c Study Notes (v)--data types and qualifiers

Source: Internet
Author: User

Like any other programming language, in order to learn more deeply, it is necessary to understand the data types and qualifiers of the gate language. The data types of OC are as follows:

(1) Int: integral type; int A;     int b=2; int c=a;

(2) Float: float type;    float b=0.1; float C=a;

(3) Double: dual-num;    Double num2=1.0; Double num3 = num2;

(4) Char: Character: Char a= ' a ';    Char b= ' B '; char C = b;

(5) Nsstring:oc type string: @ "Hello";


The following data types are explained later:

(6) Pointer type *p

(7) Custom type

(8) Universal type ID



The qualifiers for OC are as follows:

(1) Long:long int A; Long A;

(2) long long:long long int A; Long Long A;

(3) Short:short int A; Short A;

(4) unsigned:unsigned int A;

(5) signed:signed A;


More detailed understanding and analysis, later slowly.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Objective-c Study Notes (v)--data types and qualifiers

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.