Use of Break and default with Switch Statement

Switch statement In C A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on…

Share Button

Components of C language

Basic Components of C Program A basic C program has the following form: 1 2 3 4 5 6 7 comments preprocessor directives int main() { statements; } This is…

Share Button

Automatic Storage Class

Automatic Storage Class in C This is a storage class for local variables. That means these types of variables are defined within a block or function and their scope exists…

Share Button

Passing values to functions

Passing values to functions in C programming can be done in 2 ways: Call By Value Call By Reference Function call by Value in C The call by value method of passing…

Share Button

Nested Loops in C

How to use Nested Loops in C? C programming allows to use one loop inside another loop. The following section shows a few examples to illustrate the concept. Syntax The…

Share Button

Applying if and switch statements

If statements in C: An if statement can be followed by an optional else statement, which executes when the Boolean expression is false. Syntax The syntax of an if…else statement in C programming language is −…

Share Button

Double floating point

Double floating point data Type: The following table provide the details of standard floating-point types with storage sizes and value ranges and their precision − Type Storage size Value range…

Share Button

File Handling in C

File Handling in C In programming, we may require some specific input data to be generated several numbers of times. Sometimes, it is not enough to only display the data…

Share Button

Register Storage Class

Register Storage Class The variables defined as the register is allocated the memory into the CPU registers depending upon the size of the memory remaining in the CPU. We can…

Share Button

Conditional compilation in C

Conditional compilation in C programming language Conditional compilation as the name implies that the code is compiled if certain condition(s) hold true. Normally we use if keyword for checking some…

Share Button
error: Content is protected !!