Increment And Decrement Operator In C Program Tamil


// post increment & pre increment
// post decrement & pre decrement
#include<stdio.h>
#include<conio.h>
void main()
{
	int a=5;
	clrscr();
	printf("\n Post increment :%d",a++);  //5   a=6
	printf("\n Pre increment :%d",++a);  //7	a=7
	printf("\n post decrement :%d",a--); //7    a=6
	printf("\n Pre Decrement :%d",--a);  //5   a=5
	getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming