The combination of Arithmetic Operators and expressions.
Basic Data Type int float double char int a; int B = 0; int c = B; float f; float f2 = 0.1; float f3 = 1.0; double num; char c = 'a'; char C = 'a'; char cc = c;
NSString: @ "hello world"
Qualifier long; short; unsigned; signed; long int a; short a; unsigned int a; signed int;
Pointer type custom type omnipotent type
Arithmetic expressions and operators unary operators: ++ --; binary operators: +-×/%; ternary operators: 2 <3? YES: NO
Logical operators
# Import <Foundation/Foundation. h>
Int main (int argc, const char * argv []) {
@ Autoreleasepool {
Int a = 1;
A ++;
A ++;
++;
Int B = 2;
B = B +;
Int c = 6;
Int n = 9;
Int m = 2;
Int s = a + B * C-5 % 3;
NSLog (@ "% d, n % m ");
NSLog (@ "variable a + variable B value: % d", ++ );
NSLog (@ "variable a + variable B value: % d", );
NSLog (@ "% d", s );
}
Return 0;
}