Pointers Vs. Multi-dimensional Arrays

在这里插入图片描述

Question 3:

Explanation: Since every row in the array a[10][5] can contain only 5 characters, the a[2] element will hold “fello” i.e. 5 characters. There will not be any null character in a[2]. Since, the array is completely intialized, other rows (row a[3] will have only null characters. Hence, printf() using %s specifier will display fello only.

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

猜你喜欢

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