In C Language How to Use Pointer to Access Two-Dimensional Array Element

Article Preview

Abstract:

In C language, it is difficult to use the pointer to access the two-dimensional array element. The reason is the addresses of two-dimensional array are many, pointers that can access the two-dimensional array element are many and complex. This paper analyzes the two-dimensional array address and pointer, introduces various forms of using pointer to express two-dimensional array element, explains the relationship between pointer and two-dimensional array address. The program examples show how to use pointers to access the two-dimensional array element.

You might also be interested in these eBooks

Info:

Periodical:

Pages:

3044-3050

Citation:

Online since:

August 2013

Authors:

Export:

Price:

Permissions CCC:

Permissions PLS:

Сopyright:

© 2013 Trans Tech Publications Ltd. All Rights Reserved

Share:

Citation:

[1] HaoQiang Tan, C Program Design(The Second Edition) [M], BeiJing: Tsinghua University press, 1999(in Chinese).

Google Scholar

[2] XingHeng He, DongMei Zhang, GaiFang Wang, et al, C Language Program Design [M], BeiJing: China Railway Publishing House, 2008(in Chinese).

Google Scholar

[3] YuFen Tu, The Relation Ships Between Point And Arrays In Language C, [J], Journal of Wuhan Institute of Shipbuilding Technology, 2006(01): 36-38(in Chinese).

Google Scholar

[4] Rui Su, ChunFang Zhang, LiWu Wang, C Program Design [M], BeiJing: Tsinghua University press, 2009(in Chinese).

Google Scholar

[5] XianGang Chen, YanRu Feng, C Program Design [M], BeiJing: Beijing Institute of Technology press, 2007(in Chinese).

Google Scholar