Home > DeveloperSection > Interviews > What are Constants in Objective-C?

Posted on    December-11-2015 5:07 AM

 iPhone iPhone  Ios  Objective C 
 1 Answer(s)
  573  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    December-11-2015 6:07 AM

The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals.
Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal.
The constants are treated just like regular variables except that their values cannot be modified after their definition.

Modified On Dec-11-2015 05:09:24 AM

Don't want to miss updates? Please click the below button!

Follow MindStick