My photo
Bangalore, Karnataka, India
Extending one hand to help someone has more value rather than joining two hands for prayer

Archives

program to show the periority of increment or decrement operators

Tuesday, September 1, 2009

#include<iostream.h>
#include<conio.h>
#include<limits.h>
void main()
{       clrscr();
    int i,j;
    i=1;
    j=++i+(++i)+i+++(++i)+i+i+++i;
    cout<<j<<endl<<i;
    getch();
}

0 comments: