main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; int *t; //p=&a[2][2][2]; not initialized t=&a[1][1][1]; //*q=***a; //printf("%d\n",*q); //printf("%d\n",***a); // printf("%d\n",*p); int i; for(i=0;i<2;i++) { printf("t=%d\n",*t); int j; for(j=0;j<2;j++) { int k; for(k=0;k<2;k++) { printf("a=%d\n",a[i][j][k]); } } } testfunc(); testfunc2(); testfunc2(); system("pause"); }
int main(int argc, char **argv) { int t1, t2, t3, t4; double r = 0.0; t1 = ReadTSC(); r += testfunc(); t2 = ReadTSC(); r += testfunc(); t3 = ReadTSC(); r += testfunc(); t4 = ReadTSC(); printf ("Times: %i, %i, %i: result %f\n", t2-t1, t3-t2, t4-t3, r); t1 = ReadTSC(); r += testfunc2(); t2 = ReadTSC(); r += testfunc2(); t3 = ReadTSC(); r += testfunc2(); t4 = ReadTSC(); printf ("Times: %i, %i, %i: result %f\n", t2-t1, t3-t2, t4-t3, r); getchar(); return 0; }
int main(void) { testfunc1(); testfunc2(); test2func1(); test2func2(); return 0; }