Hi.
I've got a C program which calls a function:
----------------
printf("TEST1\n");
int value = my_function(param);
printf("TEST2\n");
int my_function(int my_param)
{
int internal_param = my_array[index];
printf("%d\n", internal_param); //it works ok
return internal_param;
}
-----------------
I compile it ok, and it works on my PC, but when I run it on
another PC, I get this error:
--------------------
TEST1
0
Segmentation fault
--------------------
So it crashes when returning the value. What am I doing wrong? Thank
you very much. Regards.