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

Re: why do the following crash

Subject: Re: why do the following crash
From: Noob
Date: Mon, 31 Mar 2008 16:20:10 +0200
Newsgroups: comp.lang.c


parag_paul wrote:

File1.c

  int arr[80];

File2.c

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

cf. http://c-faq.com/aryptr/aryptr1.html

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