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.

相关文章:

  • 2021-09-19
  • 2021-11-19
  • 2022-01-23
  • 2021-10-26
  • 2022-02-04
  • 2021-11-26
  • 2021-05-30
猜你喜欢
  • 2022-12-23
  • 2021-09-02
  • 2021-10-23
  • 2022-12-23
  • 2021-12-25
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案