Re: why do the following crash
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
.
Relevant Pages
- Re: wrong print
... you must be using non-standard libraries. ... int max_line_len = 1024; char **Amm,**Pss; ... char* readline; void scandir; ... Before posting for the first time to a group ALWAYS read the FAQ ... (comp.lang.c) - Re: malloc for members of a structure and a segmentation fault
... almost the entire FAQ, but can't seem to figure out this problem. ... and a pointer to a character pointer */ ... int main { ... void test; ... (comp.lang.c) - Re: [C] structures
... > struct student { ... > int main ... char grade; ... a.c.l.l.c-c++ FAQ mirror: http://nullptr.merseine.nu:8080/acllcc++.html ... (alt.comp.lang.learn.c-cpp) - Re: variadic arithmetic, boolean operators
... containers (lists, vectors, arrays, etc.) to each function. ... int sum(int * array_of_integers, ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ... Other sites: http://www.josuttis.com -- C++ STL Library book http://www.sgi.com/tech/stl -- Standard Template Library ... (comp.lang.c) - Re: newbie (dropping numbers) new post
... > to drop the lowest number from the grades. ... > int main ... sum = sum - lowest; ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ... (alt.comp.lang.learn.c-cpp) |
|