Basics in C - 1

1) The C character Set

"A character is any alphabet,symbol, digit which is used to represent information." Each programming language has a set of valid character that it can understand. Following table shows valid characters in C

2) Constants and Variables


It is a time to recall your algebra class. Digits like 1,2,3.... whose value remains constant are called constants.
Whereas we used alphabets like x,y,z are called variables
  • Constants : It is a entity that does not change.
  • Variables : It is the entity that does change.

3) Types of constants

C constants can be divided into two types:

  • Primary constant
  • Secondary constants

See the figure below:

These basics are must for you to understand so that you can perform your programming easily and effectively.

No comments:

Post a Comment