segmentation-fault
Lookahead in C/Reading
I wrote this code, as a sort of lookahead. int main() { char a[100]; char b[100]; scanf(\"%s\", a);开发者_开发百科[详细]
2023-04-06 14:02 分类:问答strcpy() causes segmentation fault? [duplicate]
This question already has answers here: 开发者_高级运维Closed 11 years ago. Possible Duplicate: Getting Segmentation Fault[详细]
2023-04-06 09:04 分类:问答Accessing double pointer causes segmentation fault
I am programming Jacobis method for eigenvalue problems in QM and I have just started c++, I want to use double pointers to construct matrices but the physics problem involved requires a lot of code.[详细]
2023-04-05 20:58 分类:问答C++ Segmentation Fault on For Loop
Everything works fine right up until the last value of index 19. In fact, all values are printed and what not. Once it prints the final value & index, it seg faults. I am assuming this is because[详细]
2023-04-05 19:08 分类:问答segmentation fault on resizing a vector of large structures
The code below is generating a segementation fault, and I do no开发者_如何学Ct understand why. The code below uses a vector to store multiple large strucutres, but the code does not run and generates[详细]
2023-04-05 18:54 分类:问答segfault in fwrite on linux
I havea piece of C code where I try to write a buffer into an opened output file.I am getting a segmentation fault when I try to run the code.[详细]
2023-04-05 12:21 分类:问答How do I get rid of a NULL segmentation fault?
I am creating a linked list program in C and I keep on getting a segmentation fault.I\'ve narrowed the problem down to a few lines of code and I believe i开发者_如何学Pythont has to do with checking f[详细]
2023-04-05 10:31 分类:问答Re-Opening a BerkeleyDB database raises a Segmentation fault
In the following program, I open a BDB environment open a databaseDB_BTREE/DB_CREATE close the database[详细]
2023-04-04 22:46 分类:问答Segfault using qsort
I need to sort an array of characters in order to iterate over it and print out the unique data points and their count.This array is held inside a linked list node, and I want to use qsort to do this.[详细]
2023-04-04 08:10 分类:问答Why is the following code not giving segmentation fault ?
In the following program, shouldn\'t the开发者_StackOverflow社区 code in the 2nd loop give segmentation fault ?[详细]
2023-04-03 17:58 分类:问答