D
dost
Guess the result and then write in ur editor
void DisplayInterestingRsult2(int a, int b)
{
printf("\n\tA[%d],B[%d]\n",a,b);
}
int _tmain(int argc, _TCHAR* argv[])
{
int iInput = 0;
printf("\ni = 0 FUN(i++,++i,i++,i)\n");
DisplayInterestingRsult(iInput++,++iInput,iInput++,iInput);
}
My result is
A[2]B[3]C[0]D[3]
i could not find why is it so.
please explain.
using of printf should be ignored you can use cout.
void DisplayInterestingRsult2(int a, int b)
{
printf("\n\tA[%d],B[%d]\n",a,b);
}
int _tmain(int argc, _TCHAR* argv[])
{
int iInput = 0;
printf("\ni = 0 FUN(i++,++i,i++,i)\n");
DisplayInterestingRsult(iInput++,++iInput,iInput++,iInput);
}
My result is
A[2]B[3]C[0]D[3]
i could not find why is it so.
please explain.
using of printf should be ignored you can use cout.