---
title: "What are Constants in Objective-C?"  
description: "What are Constants in Objective-C?"  
author: "Tarun Kumar"  
published: 2015-12-11  
updated: 2020-09-24  
canonical: https://www.mindstick.com/interview/22939/what-are-constants-in-objective-c  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# What are Constants in Objective-C?

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.

## Answers

### Answer by Tarun Kumar

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.


---

Original Source: https://www.mindstick.com/interview/22939/what-are-constants-in-objective-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
