This is a discussion on Kindly mention the Cases within the C and C++ forums, part of the Programming Talk category; What are the conditions or scenarios under which one may get Segmentation fault in C programming language? If someone could ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Segmentation fault in occurs mainly when a memory area that is not allowed to be accessed is tried to be used.
For example if you have a C code as below placed in a memory protected platform: char *a = "Example"; *a = 'T'; Then on compilation of the above program you would get segmentation fault as the Example string was tried to be placed in area of memory marked as read only. |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kindly provide guidelines | Adrian | Siebel | 1 | 04-11-2007 04:26 AM |
| Kindly mention the Languages | cyrus | C Sharp | 0 | 02-26-2007 04:26 PM |
| Kindly Provide Answer for this Question | Ralph | SQL Server | 0 | 12-15-2006 02:22 PM |
| A Guide for Test Cases, Test Suites, Test Scripts, and Test Scenarios | anandamalan | Software Testing | 0 | 11-24-2006 04:54 AM |
| Test Cases In Automated and Manual Testing | rajk | Testing Tutorials | 2 | 07-26-2006 04:18 AM |