Showing posts with label Coding Of Increament and Decreament Uniary operator. Show all posts
Showing posts with label Coding Of Increament and Decreament Uniary operator. Show all posts

Wednesday, 31 October 2012

Program Of Increament and Decreament, Uniary Operator In C++


#include<iostream.h>
#include<conio.h>

main()

{

clrscr();

int a,b,c,d,e,f;


a=10;

                           b=++a;         //a=11 , b=11
                           c=a--;           //c=11 , a=10
                       d=--a;           //a=9 , d=9 
                       e=--a;           //e=8 , a=8
                       f=a++;         // a=8 , f=9
        
cout<<"\n a="<<a;
        
cout<<"\n b="<<b;
       
 cout<<"\n c="<<c;
       
       
      
  
 getch();
}