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 …
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 …
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 …
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 …
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 …
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 …
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 …
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 …
Read moreC – Input output(I/O): printf, scanf, getchar & putchar
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: …
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 …
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: …