Constants

What is Constants in C Programming Language?

There are some values which do not change during the execution of the program. These values are called constants. Constants are of fixed value that remain unchanged during the execution of a program, and are used in assignment of statements. Constants are stored in variables. Syntax of constant declaration: Const datatype var_name = value; Example …

What is Constants in C Programming Language? Read More »

What is Character constants In C Programming Language?

A character constant consists of a single digit or a single special symbol enclosed within a pair of single inverted commas. The maximum length of a character constant can be 1 character. e.g. –> ‘a’, ‘i’ , ‘5’, ‘=’. There are some character sequence constants which are used in C to represented special action, these …

What is Character constants In C Programming Language? Read More »

What is Logical & String constants In C Programming Language?

A logical constant can have either of two values either true or false. In C a non-zero value is always treated as true whereas zero is treated as false. The logical constants are very useful in evaluating logical expressions and complex condition. A group of character enclosed within a pair of double inverted commas (” …

What is Logical & String constants In C Programming Language? Read More »

Scroll to Top