这是什么意思char(*(* a [4])())[5]? [英] what does this mean char (*(*a[4])())[5]?

查看:518
本文介绍了这是什么意思char(*(* a [4])())[5]?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在测试您在c ++中的技能中遇到了这个问题。



请让我知道一个例子是什么意思?



已编辑部分 :对不起,额外的括号,编辑&已删除。

  char(*(* a [4])())[5] 


解决方案

我欺骗通过删除我认为是额外的右括号, a href =http://cdecl.org/> cdecl 。



声明一个作为数组4的函数指针将指针返回到char


的数组5

Hi I came across the question in "Test your skills in c++".

Please let me know what does it mean with an example?

Edited Section: Sorry for the extra parenthesis, edited & removed.

char (*(*a[4])())[5]

解决方案

I cheated by removing what I think is an extra right-parenthesis and pasting the result into cdecl.

declare a as array 4 of pointer to function returning pointer to array 5 of char

这篇关于这是什么意思char(*(* a [4])())[5]?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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