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
版权声明:本文标题:C++ Syntax, double prt accessing memory using parentheses in arrays - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736542379a1944400.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论