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.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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.