C – Loops

There may be times in a program where a block of code needs to be executed several times sequentially. In such cases, Loops are used to execute a sequence of statements many times until the stated condition becomes false. Two Types of Loops in C Programming. 1. Entry controlled loop: In this type loop, the … Read more

C – switch statement

A switch statement allows a variable to be tested for equality against multiple values and each of those values is called a case. It can be used instead of nested if…else. Switch expression and case value must be of the same type. There must be at least one case or multiple cases with unique case … Read more

C – nested switch statement

The use of switch statement inside another switch statement is called nested switch statement. Syntax Syntax of nested switch statement in C: Example of nested switch statements in C: The output of nested switch statements in C. The OUTER Switch. The INNER Switch.

C – if statement

An if statement consists of a Boolean expression followed by one or more statements.If the boolean expression is true, the block of code inside the if statement will be executed else not. Syntax Syntax of if statement in C: if statement Flowchart: Example of if statement in C Program: The output of if statement in C. num1 is … Read more

C – Decision Making Statements

In C programming Language, Decision-Making statements are used when a user wants a certain block to be executed under certain conditions. It also allows the user to determine the order in which a certain block has to be executed, or repeat that block until the certain condition is fulfilled. C programming language provides the following types … Read more

C – Tokens

What is Token in C? The basic and smallest unit of a C program is called C tokens. This tokens are meaningful to the compiler. Compiler breaks the programs into smallest unit that is the tokens and proceed various compilation stages. There are total six tokens in C Programming language. Keywords and Identifiers: Keywords are … Read more

C – Input output(I/O): printf, scanf, getchar & putchar

Input output(I/O) Input means providing or inserting some data that is to be used in a program.Output means to display the data on the screen or write it in a file. There are many C built-in function that are used to take in data and display the data from a program as a result. printf() and scanf() functions … Read more

C – Keywords and Identifiers

In this article you will learn about the Keywords, Identifiers and Tokens present in C. Let us first start with Character sets, knowing what are character sets then you will understand the rest in this article.Let us begin. Character sets: In C Programming Character Sets refers to all the alphabets, letters and some special characters … Read more

C -Introduction

C is one of the most commonly used programming languages. It is a general-purpose, high-level language (generally denoted as structured language). C is used for creating a compiler of different languages, implementation of different Operating System Operations. C programming language was first developed by Dennis M. Ritchie at At&T Bell Labs. There are many applications … Read more

C – if…else statement

If the Boolean expression is true then the code inside the if statement block is executed or if it is false then the code inside else statement will be executed. Hence if..else statement. Syntax Syntax of if…else statement in C Language: If…else Flowchart: Example of if…else statement in C. The output of if…else statement in C. … Read more