我想了解有关在C中使用数组的更多信息 [英] I'd like more information on using arrays in C

查看:73
本文介绍了我想了解有关在C中使用数组的更多信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



你能不能给我一些关于如何在C?中使用数组的更多信息?


你也可以告诉我是否这个陈述是否正确:


void do_child(int data_pipe [] [],int i)

close(data_pipe [i] [1]) ;

Hi,
could you please give me some more info on how to use arrays in C??

and also, could you tell me whether this statement is correct or not:

void do_child(int data_pipe[][],int i)
close(data_pipe[i][1]);

推荐答案

int a [10];


它是一种来自int类型的数组..

它有10个索引&它的名字是
int a[10];

it''s a kind of array from int type..
it has 10 index & it''s name is a





你能不能给我一些关于如何更多的信息在C ??

中使用数组,还能告诉我这个陈述是否正确:


void do_child(int data_pipe [] [],int i)

close(data_pipe [i] [1]);
Hi,
could you please give me some more info on how to use arrays in C??

and also, could you tell me whether this statement is correct or not:

void do_child(int data_pipe[][],int i)
close(data_pipe[i][1]);



如果你不知道阵列是什么,你会在世界上接近高级主题如InterProcess Communication吗?

数组变量存储一组连续内存位置的第一个地址,其中存储了离散数量的字节(或单词或双字)。数组变量的类型因此是指针。请阅读Ritchie和Kernighan ANSI C book

why in the world do you approach advanced topics like InterProcess Communication if you don''t even know what an array is???
An array variable stores the first addres of a set of contiguous memory locations where a discrete number of bytes(or words,or double words) is stored.the type of an array variable is therefore a pointer.Please read Ritchie and Kernighan ANSI C book


阅读本文,如果您仍有疑问,请再次发帖:
Read this and then post again if you still have questions:

首先,只有一维数组C或C ++。括号中放置的元素数量:
First, there are only one-dimensional arrays in C or C++. The number of elements in put between brackets:
展开 | 选择 | Wrap | 行号


这篇关于我想了解有关在C中使用数组的更多信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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