Quote (m0hawk @ 21 May 2014 12:50)
as said earlier that code is scrambled probably because you didn't copy it properly. Anyway here's a working version
Code
#include <iostream>
int main()
{
int i,j,n;
i=0;
n=i++;
std::cout << "A : i = " << i << " n = " << n << std::endl;
i=10;
n=++i;
std::cout << "B : i = " << i << " n = " << n << std::endl;
i=20;
j=5;
n=i++ * ++j;
std::cout << "C : i = " << i << " j = " << j << " n = " << n << std::endl;
return 0;
}
and the output is
Code
A : i = 1 n = 0
B : i = 11 n = 11
C : i = 21 j = 6 n = 120
Yes thanks you , i had already find the result

i have made some change :
Code
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
int i,j,n;
i=0;
n=i++;
cout << " A : i= " << i << " n = " << n << endl;
i=10;
n=++i;
cout << " B : i = " << i << " n = " << n << endl;
i=20;
j=5;
n=i++ * ++j;
cout << " C : i = " << i << " j = " << j << " n = " << n << endl;
getch();
}