in the inner loop even when the value of second is 3 it executes that for loop... that should not happen even when we use to conditions for validity of for loop.
Expand|Select|Wrap|Line Numbers
- for(first=0;first<2;first++)
- {
- for(second=1;second<3,column>-1;second++,column--)
- {
- if(first==second)
- second++;
- store=(matrix[1][first]*matrix[2][second]-matrix[1][second]*matrix[2][first])*(matrix[0][column]);
- if(column==1)
- store=store*-1;
- add=store+add;
- }
- }
One more thing in Visual C++ 6.0 is -1^2; square of -1 is coming as 3...
Which function is actually getting evaluated?
Whats the operator for Exponent?
I tried with almost all operators.. in all those even % was also unexplainable.