pointer use as array

    int* A = (int*)malloc(sizeof(int)*s);
    A[0]=11; A[1]=22;
    printf("A = %d %d\n", A[0], A[1]);

 

 // the same reason:

  s_fm_solution_t** fm_sol;

  fm_sol[index] = camus_fm_solver(self, pmatrix); // because camus_fm_solver get the (s_fm_solution_t*) type;

 

// pointer, when just use(not alloc), dont need &, but pointer** is another thing

 

 

posted @ 2012-05-11 17:47  findumars  Views(186)  Comments(0Edit  收藏  举报