mcqs bucket

  • MCQs Bucket | Program Write Program in C++ that explains the difference of postfix decrement operator and prefix decrement operator used as independent expression.

    mcqsbucket

      Best guide for exams of all nature, Competitive exams and Interviews

Write Program in C++ that explains the difference of postfix decrement operator and prefix decrement operator used as independent expression.

	 
                                 		
include < iostream.h >
include < conio.h >
void main()
{
int a,b,x,y;
a=b=x=y=0;
a--;
b=a;
--x
y=x;
cout<<"a="<<a<<endl<<"b="<<b<<endl;
cout<<"x="<<x<<endl<<"y="<<y<<endl;
getch();
}