public static int Func1(double* arg1, double* arg2) { VT2 vt2 = new VT2(); vt2.a4 = 10; vt2.a5 = 18; int retval1 = Convert.ToInt32((*arg1) + (vt2.a5 * 12)) % Convert.ToInt32((Convert.ToInt32(4 - (-9)) % (17 % vt2.a4)) / (s_a1 * (*arg2))); Console.WriteLine("The correct result is 1"); Console.WriteLine("The actual result is {0}", retval1); return retval1; }
public static int Func1(double *arg1, double *arg2) { VT2 vt2 = new VT2(); vt2.a4 = 10; vt2.a5 = 18; int retval1 = Convert.ToInt32((*arg1) + (vt2.a5 * 12)) % Convert.ToInt32((Convert.ToInt32(4 - (-9)) % (17 % vt2.a4)) / (s_a1 * (*arg2))); Console.WriteLine("The correct result is 1"); Console.WriteLine("The actual result is {0}", retval1); return(retval1); }