C Programming Questions and Answers – Initialization of Pointer Arrays

在这里插入图片描述

Question 6:
Explanation: If the system is 32-bit system, then the size of pointer will be 4 bytes. For such a system, the size of array a will be 4×10 = 40 bytes. The size of pointer is 8 bytes on a 64 bit system. For the given array a of 10 elements, it will be 8×10 = 80 bytes.

Question 7:
Explanation: Array element a[1] is storing an address of character pointer. For a 32-bit systems its 4 bytes and for a 64-bit system, its 8 bytes.

发布了165 篇原创文章 · 获赞 124 · 访问量 5606

猜你喜欢

转载自blog.csdn.net/qq_45645641/article/details/105309543