Hi
Nice to meet you, I have problem about link between main.c and sub.h.
The error message is "segment error".
So my program is written as follow below:
In main.c
Code:#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "sub.h" int main() { double K[50000][50000]; sub (K); }
In sub.h
It can be run if i use K[15000][15000].Code:void sub(double K[][50000]) { K[0][0]=5; }
Why i can not use the array size bigger than 15000?
Please help me.
Thank you in advance.