current position:Home>Introduction to C language: pointer and multidimensional array

Introduction to C language: pointer and multidimensional array

2022-02-02 21:49:46 CSDN Q & A

int zippo[4][2];

zippo==&zippo[0]
zippo==&zippo[0][0]
The book says that because this integer and the array of two integers start at the same address, so zippo be equal to zippo[0] Value
What do you mean
Why zippo be equal to zippo[0] The value of the




Refer to the answer 1:

yes Address values because zippo The array name can be used as the first address of the array. The first address is zippo[0][0] The address of , and zippo[0] Array again zippo[0][2] The first address The three address values are the same




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202022149450059.html

Random recommended