ankitweblogic logo
W e b t u t o r i a l s

C Tutorial

Programing Approach

Algorithm

Flow Chart

Define C

Define Programming

C - Syntax

Compiler vs Interpreter

C - Variables

C - Keywords

C - Data Types

C - Comments

Turbo C - Shortcut keys

C - Operators

Hierarchy of Operators

Ex: Arithmetic Operator

C - Formatting Output

Constant Variable

C - Escape Sequence

C - if , switch

Ex: If condition

Ex: Inc / Dec Operator

C - loops

Ex: Loops

C - Nesting Of loops

Ex: Nested Loops

Jumping Statements

C - Arrays 1D

C - Arrays 2D

C - Sorting

ASCII Value

Character I/O Function

C - String Functions

Ex: Strings

Array of Strings

C - Math Functions

User-defined Function

Exercise Function

C - Types of Functions

Storage Class

C - Header Files

C - Preprocessor

C - Pointers

C - Structures

C - Typedef

C - File Handling

Ex: File Handling

Command Line Argument

MCQ

C - Nested loop

Nested loop is a loop inside another loop. Nested loop is useful when you want to print numbers in rows and columns.

Example 1: Nested for loop.

for (i=1; i<=10; i++)
{
	for (j=1; j<=10; j++)
	{
		printf("%d\n", a++);
	}
}

The above code will execute upto 100 times.

Same way you can nested while and do_while loop.

Multiple initializations in for loop

for (i=1,j=1; j<=10; i++, j++)
{
	printf("%d %d\n", i, j);
}
Updated: 13-Mar-19