Categories
Variables and Keywords

char, const and do…while

char

The char keyword declares a character variable. For example:

char alphabet;

Here, alphabet is a character type variable.

const

An identifier can be declared constant by using the const keyword.

const int a = 5;

do…while

int i;
do 
{
   printf("%d ",i);
   i++;
}
while (i<10)

Leave a Reply

Your email address will not be published. Required fields are marked *