出了个指针题,能说出来输出什么,指针没问题了

it2024-10-17  16

#include <iostream> #include <cstdio> using namespace std ; int f(int ****a,int ***&d) { printf("%d\n",****a); printf("d=%d\n",***d); d=*a; printf("d=%d\n",***d); return 0; } int main() { int A=9000; int *p=&A; int **p2=&p; int ***p3=&p2; int ****p4=&p3; int B=1000; int *pp1=&B; int **pp2=&pp1; int ***pp3=&pp2; printf("***%d\n", ***pp3); f(p4,pp3); printf("A=%d\n",A); printf("B=%d\n",B ); printf("***%d\n",***pp3); return 0; } View Code

 

转载于:https://www.cnblogs.com/Skyxj/p/3407345.html

最新回复(0)