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

C Tutorial

Programing Approach


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


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


Exercise on Increment And Decrement

int x=1, y=2, z=3;
printf (“\n%d” , x++ + ++y - --z);
printf (“\n%d” , --x – y-- + z++);
printf (“\n%d” , x++ * ++y % ++z);
printf (“\n%d” , --x / --y * --z);
printf (“\n%d” , --x - z-- % --y);
printf (“\n%d” ,- --x - --y - --z);
printf (“\n%d” ,++x * y-- - ++y *x--);
printf (“\n%d” ,x++ * ++y – x * y * z++);

int x=10, y=11, z=12, w;
w= ++x – y++;
printf (“%d %d %d” ,w, x, y);
w=++y + x++ * z--;
printf (“%d %d %d %d”, w, y, x, z);
w= ++x % ++y % ++z % w--;
printf (“%d %d %d %d”, w, x, y, z);
w= ++w / ++x / y--;
printf (“%d %d %d ”, w, x, y);