#include
void printptr(int *i){
printf("&i of printfptr = %#X\n",&i);
printf("i of printfptr = %#X\n",i);
printf("*i of printfptr = %d\n",*i);
printf("i+1 of printfptr = %#X\n",i+1);
printf("*(i + 1) of printfptr = %d\n",*(i+1));
}
void printptr2(int *i,int j){
printf("&i of printfptr2 = %#X\n",&i);
printf("i of printfptr2 = %#X\n",i);
printf("*i of printfptr2 = %d\n",*i);
printf("i+1 of printfptr2 = %#X\n",i+1);
printf("*(i + 1) of printfptr2 = %d\n",*(i+1));
}
void printptr3(int *i){
printf("&i of printfptr3 = %#X\n",&i);
printf("i of printfptr3 = %#X\n",i);
printf("*i of printfptr3 = %d\n",*i);
printf("i+1 of printfptr3 = %#X\n",i+1);
printf("*(i + 1) of printfptr3 = %d\n",*(i+1));
}
void printptr4(int *i,int j){
printf("&i of printfptr4 = %#X\n",&i);
printf("i of printfptr4 = %#X\n",i);
printf("*i of printfptr4 = %d\n",*i);
printf("i+1 of printfptr4 = %#X\n",i+1);
printf("*(i + 1) of printfptr4 = %d\n",*(i+1));
}
void printptr5(int **i){
printf("&i of printfptr5 = %#X\n",&i);
printf("i of printfptr5 = %#X\n",i);
printf("*i of printfptr5 = %d\n",*i);
printf("i+1 of printfptr5 = %#X\n",i+1);
printf("*(i + 1) of printfptr5 = %d\n",*(i+1));
printf("**i of printfptr5 = %d\n",**i);
printf("*(*i+1) of printfptr5 = %d\n",*(*i+1));
printf("**(i+1) of printfptr5 = %d\n",**(i+1));
}
void printptr6(int **i){
printf("&i of printfptr6 = %#X\n",&i);
printf("i of printfptr6 = %#X\n",i);
printf("*i of printfptr6 = %d\n",*i);
printf("i+1 of printfptr6 = %#X\n",i+1);
printf("*(i + 1) of printfptr6 = %d\n",*(i+1));
print
Yes£¬ CºÍC++»ìÓõÄÈ·ÊÇnatural£¬±Ï¾¹¾ø´ó¶àÊýC++ѧϰÕ߶¼´ÓCѧÆð£¬C++¼æÈÝC¾ÍÊÇΪÁ˽µµÍѧϰÃż÷¡£µ«ÊÇCºÍC++»ìÓÃÈ´²»Ò»¶¨ÊÇnecessary¡£ ÎÒÃÇ°ÑCºÍC++¹éΪһÀ࣬ͨ³£Ð´×÷C/C++£¬ÄÇÊÇÒòΪ´ÓÓïÑԽǶȽ²CµÄÎÊÌâ¾ÍÊÇC++µÄÎÊÌ⣬µ«ÊÇ·´¹ýÀ´¾Í²»³ÉÁ¢£¬Òò´Ë¾ßÌ嵽ij¸ö¹¤³ÌµÄʱºò£¬ÄãÔÚ¿ª¹¤Ö®Ç°¾Í±ØÐë¾ö¶¨µ½µ×ʹÓÃC»¹ÊÇC++£¬»òÕß˵ ......