int(* p)[3]和int * p [3]之间有什么区别? [英] What is difference between int (*p)[3] and int *p[3]?

查看:114
本文介绍了int(* p)[3]和int * p [3]之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

int(* p)[3]和int * p [3]有什么区别?

What is difference between int (*p)[3] and int *p[3]?

推荐答案

int (*p)[3]

是指向整数数组的指针。

is a pointer to an array of integers.

int *p[3]

是一个int指针数组。



检查这个 post 。它对示例代码有一个很好的解释: - )

is an array of int pointers.

Check this post.It has a nice explanation with example code :-)


这篇关于int(* p)[3]和int * p [3]之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆