comp.lang.c
[Top] [All Lists]

Re: why do the following crash

Subject: Re: why do the following crash
From: Philip Potter
Date: Mon, 31 Mar 2008 14:39:12 +0100
Newsgroups: comp.lang.c


parag_paul@xxxxxxxxxxx wrote:
File1.c

  int arr[80];

File2.c

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

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

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy