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:

What are the intentions here? Firstly you are not initializing 'c' and then directly checking it for NULL ???

3)

Quote:

c[k]=(double *)malloc(*b/15 * sizeof(double));

c[k] means *(c+k). Which is value at address held at memory location 'c+k', but does the memory location 'c+k' belong to any variable in our program?
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?