为什么以下崩溃 [英] why do the following crash

查看:89
本文介绍了为什么以下崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

File1.c


int arr [80];


File2.c


extern int * arr;

int main()

{

arr [1] = 100;

返回0;

}

File1.c

int arr[80];

File2.c

extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}

推荐答案

pa ******** @ hotmail.com 写道:

File1.c


int arr [80];


File2.c


extern int * arr;

int main()

{

arr [1] = 100;

返回0;

}
File1.c

int arr[80];

File2.c

extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}



您是否阅读过常见问题解答?你刚问了问题6.1,如果你去
http:// c-faq .com / 你会得到答案。


菲利普

Did you read the FAQ? You have just asked question 6.1, and if you go to
http://c-faq.com/ you will get your answer.

Philip




Philip Potter< pg *@doc.ic.ac.ukwrites:

Philip Potter <pg*@doc.ic.ac.ukwrites:
pa * *******@hotmail.com 写道:

> File1.c

int arr [80 ];

File2.c
extern int * arr;
int main()
{
arr [1] = 100;
返回0;
}
>File1.c

int arr[80];

File2.c

extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}



您是否阅读过常见问题解答?您刚刚问了问题6.1,如果你去 http:/ /c-faq.com/ 你会得到答案。


Philip


Did you read the FAQ? You have just asked question 6.1, and if you go
to http://c-faq.com/ you will get your answer.

Philip



你会回复吗?这里的每个问题都带有指向常见问题的指针?


如果可能的话你想要自动回复你的回复吗?


提示:不是来到这里的每个程序员都可以记住整个常见问题解答

也无法找到FAQ的必要部分。

Will you be replying to every question here with a pointer to the FAQ?

If so possibly you would like to just automate your replies?

Hint : not every programmer that comes here can memorise the entire FAQ
nor can they always find the necessary section of the FAQ.


3月31日,8日:56:00,Richard< de ... @ gmail.comwrote:
On Mar 31, 8:56 am, Richard <de...@gmail.comwrote:

Philip Potter< p ... @ doc.ic.ac.ukwrites:
Philip Potter <p...@doc.ic.ac.ukwrites:

parag_p ... @ hotmail.com写道:
parag_p...@hotmail.com wrote:

File1.c
File1.c


int arr [80];
int arr[80];


File2.c
File2.c


extern int * arr;

int main()

{

arr [1] = 100;

返回0;

}
extern int *arr;
int main()
{
arr[1] = 100;
return 0;
}


您是否阅读过常见问题解答?你刚刚问了问题6.1,如果你去了

tohttp://c-faq.com/你会得到答案。
Did you read the FAQ? You have just asked question 6.1, and if you go
tohttp://c-faq.com/you will get your answer.


Philip
Philip



您是否会回复此处的每个问题,并指向常问问题?


Will you be replying to every question here with a pointer to the FAQ?



如果问题确实是常见问题,他为什么不应该?

Why shouldn''t he, if the question really is a FAQ?


>

如果可能,您希望自动回复?
>
If so possibly you would like to just automate your replies?



你愿意这样做吗?虽然问题的范围更有限,但是自动解释人类语言的问题似乎是难以解决的问题。

Are you offering to do it? While the scope of the problem is more
limited, the problem of interpreting human language automatically
appears to be intractable.


>

提示:并非所有来到这里的程序员都能记住整个常见问题解答

也不能总能找到FAQ的必要部分。
>
Hint : not every programmer that comes here can memorise the entire FAQ
nor can they always find the necessary section of the FAQ.



常见问题是很好的参考。没有人会记住它,但它会很好地偶尔阅读它。 (我想我需要一个

复习。)

Ed

The FAQ is a nice reference. No one is expected to memorize it but it
would do good to read it once in a while. (I think I am due for a
refresher.)
Ed


这篇关于为什么以下崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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