用c语言创建一个数组 [英] creating an array in c language
本文介绍了用c语言创建一个数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以创建一个数组,其中每个元素都是c语言的指针。
如果有可能那么怎么做...
is it possible to create an array whose each element is a pointer in c language.
if it is possible then how to do that...
推荐答案
是的,这是可能的,您应该已经知道,因为每个C
程序的入口点,即main
函数,可以有以下签名
Yes, it is possible and you should already know that, because the entry point of everyC
program, that is themain
function, can have the following signature
int main(int argc, char * argv[])
您可以使用普通英语到C语言翻译 [ ^ ]如下: http://cdecl.ridiculousfish.com/?q=declare+bar+as+array+10+of+pointer+to+int [ ^ ]
You can use a plain english to C gibberish translator[^] like this: http://cdecl.ridiculousfish.com/?q=declare+bar+as+array+10+of+pointer+to+int[^]
当然可以。谷歌将提供帮助。这是一个开始:
http: //www.roseindia.net/c-tutorials/c-array-pointers.shtml [ ^ ]
http://www.tutorialspoint.com/cprogramming/c_array_of_pointers.htm [ ^ ]
Yes of course. Google will help. Here's a start:
http://www.roseindia.net/c-tutorials/c-array-pointers.shtml[^]
http://www.tutorialspoint.com/cprogramming/c_array_of_pointers.htm[^]
这篇关于用c语言创建一个数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文