Tuesday, August 18, 2020

6.1 Introduction to C Constants

  • Constants are those variables that do not change anytime during the value program execution. 
  • Whenever you declare a constant, its value remains fixed during the execution of the program. 
  • If there is an attempt to change its value then there is an error in the program.
  • Constants in C language are of two types.

  1. Constant Literals
  2. Constant Variables

❖ These two types of constants are being explained in detail.


No comments:

Post a Comment

Please do not any spam link in Comment Box