| | |
A whole bunch of Segmentation Faults
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
1
#11 21 Days Ago
•
•
•
•
Aw man, I thought C handled chars! It's just one byte! Okay, thanks again for your help.
As a general rule, do segmentation faults happen because memory isn't allocated? I'd guess with beginner C it wouldn't be anything fancier.
segmentation faults occur when you are trying to access memory that you are not suppose to. e.g. c Syntax (Toggle Plain Text)
int *x; /* declares a pointer to int, the variable x is holding a random value which will be used to represent an address */
![]() |
Similar Threads
- mysterious segmentation fault (C)
- glutMouseFunc and Segmentation Faults (Game Development)
- Segmentation Fault - Need help correcting (C++)
- Big files bring segmentation faults (C)
- string input segmentation fault on linux (C++)
- Segmentation Fault (C)
- Need help with string manipulation and seg faults (C)
- yet another segmentation fault (C++)
- what is the best way to track segmentation fault errors (C++)
Other Threads in the C Forum
- Previous Thread: Error while declaring a structure
- Next Thread: delete same array element in C
| Thread Tools | Search this Thread |
#include * adobe ansi array arrays asterisks binarysearch centimeter changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc csyntax database directory dynamic execv feet fgets file fork framework function getlasterror getlogicaldrivestrin givemetehcodez global grade gtkgcurlcompiling gtkwinlinux hacking histogram ide include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list lists locate logical_drives looping lowest match matrix meter microsoft motherboard mqqueue number odf opendocumentformat opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv research reversing scripting segmentationfault sequential single socket socketprograming standard string systemcall testing threads turboc unix user voidmain() wab whythiscodecausesegmentationfault windows.h windowsapi






