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