您的位置:首页 > 其它

pointer use as array

2012-05-11 17:47 337 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: