Tag: data type
NSLog datatype formatting option in Objective-C
NSLog in Objective-C is function call that is useful during debugging of a program. A typical NSLog example is NSLog(@” How to use NSLog”); The above statement prints the message ” How to use NSLog ” in console window. If you want to print the value of Objective-C variable or data type then you need…
Different data types in Objective-C
Objective-C like any other programming languages has different data types like int, float, double, char and id. Data types are used for specifying the kind of data that is being stored in a variable. For example, the below code stores a single character to a variable “flag” char flag = ‘1’ Data type – char…