![]() |
Help!!segmentation fault
hello all,
I am stuck and am unable to proceed anywhere on account of segmentation fault:( in the following code...can anyone temme what im doing wrong and how to rectify it.any help will be welcome :nice: Code:
#include<stdio.h> |
Re: Help!!segmentation fault
well i can offer you a hello :P
|
Re: Help!!segmentation fault
Quote:
|
Re: Help!!segmentation fault
1)The very first problem is what my compiler tells me when I try to compile this program
Quote:
Code: c
3) Quote:
This is a problem as we are trying to access the stack address which does not belong to any variable of our program. I could not go through the entire program as its quite messy. Can you explain what are you trying to achieve through this program? |
Re: Help!!segmentation fault
just allocate the memory for c before checking c==null
|
| All times are GMT +5.5. The time now is 17:33. |