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 …
Read More »Constants
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’, …
Read More »What is Integer constants In C Programming Language?
An integer constant refers to a sequence of digits. It could be either positive or negative. and must have at least one digit. It mustn’t have a decimal point. No commas or blank are allowed …
Read More »What is Real constants In C Programming Language?
Real constants are often called Floating Point constants. It has three parts: 1. A sign (+ or -) preceding the number portion (optional). 2. A number portion (representing the base). 3. An exponent portion following …
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 …
Read More »