admin管理员组

文章数量:1123050

I study pointers. Could someone explain to me how this works? Namely, when I refer to the memory through parentheses.

int** dp = new int* [2];
dp[0] = new int[2];
*(dp + 1) = new int[2];

dp[0][0] = 1;
(*dp)[1] = 2;

dp[1][0] = 3;
(*(dp + 1))[1] = 4;

Where can I learn this syntax?

本文标签: C Syntaxdouble prt accessing memory using parentheses in arraysStack Overflow