[笔记] 二级指针(pointer to pointer)

// 1.pointer to pointer.cpp 

#include "stdafx.h"
#include <stdlib.h>

int _tmain(int argc, _TCHAR* argv[])
{
    int n = 0x88;
    int *pn = NULL;
    int **ppn = NULL;
pn
= &n; ppn = &pn; printf("%X\r\n", ppn); printf("%X\r\n", *ppn); printf("%X\r\n", **ppn); system("pause"); return 0; }

1.赋值 

2.给指针赋值

 3.输出

猜你喜欢

转载自www.cnblogs.com/bianyachao/p/11642720.html