Lemonade
Published on 2025-01-21 / 8 Visits
0
0

C语言笔记

1. 易混淆概念区分

1. 指针

1. 指针数组 与 数组指针

指针数组:是有多个指针的数组;数组指针:是单个指向数组的指针。

指针数组:

/* 指针数组. This defines a array containes 32 pointers. */
uint8* apu8Test1[32] = {(void*)1};

/* 数组指针. This defines a pointer points to an array. */
uint8 u8Array[32];
uint8 (*paTest2) = u8Array;


Comment