Segmentation fault(core dumped) variable assignment
问题 I have a program written in C++, compiled with G++, running in Ubuntu 13.04 32 bits, that is giving the following error: "Segmentation fault (core dumped)". int main(int argc, char *argv[]){ printf("1\n"); int x = 0 , y = 0, count = 0; printf("2\n"); char c; printf("3\n"); int n_frames = (atoi(argv[1]) - 1); printf("4\n"); int windowSize = WINDOW_SIZE; // WINDOW_SIZE is a define printf("5\n"); // And the program go on.... long double frames[n_frames][377]; long double dis_frames[n_frames -