I guess that baza_vocka
is a local variable, perhaps inside main
You are experimenting some stack overflow, .... Local call frames should usually be small (a few kilobytes) in your call stack
You should not have so big local variables. Allocate such big arrays in the heap using malloc
or calloc
. Don't forget to test that they are not failing. Read documentation of malloc(3), and don't forget to free
such a heap allocated array. Beware of memory leaks & buffer overflows. Use valgrind if available.
On current desktops, stack space is a few megabytes, so you usually should limit each call frame to a few kilobytes (or a few dozens of kilobytes).