Posted On: Feb 22, 2018
Flag values are used to make decisions between two or more options during the execution of a program. Generally, flag values are small (often two) and it tries to save space by not storing each flag according to its own data type.
The best way to store flag values is to keep each of the values in their own integer variable. If there are large number of flags, we can create an array of characters or integers. We can also store flag values by using low-order bits more efficiently.
Never Miss an Articles from us.
C defines another class of variables called static variables. Static variables are of two types:Static variables tha..
The scope resolution operator (::) is useful in C programming when both global and local variables have the same name,..
C language allows the use of the prefix register in primitive variable declarations. Such variables are called register..