Hi,
This is the first call to malloc and we start off from here itself and I dont see a problem of memory if calloc can allocate the memory at same point then malloc should also do the same then...
Type: Posts; User: xxhimanshu
Hi,
This is the first call to malloc and we start off from here itself and I dont see a problem of memory if calloc can allocate the memory at same point then malloc should also do the same then...
Hi Salem,
thanks for your prompt response this is the line where it gives the segmentaion violation
q=(char *)malloc(strlen(theStr) + 1);
where q is a pointer of char* type.
when i try to...
Hi All,
i am using a malloc to allocate some memory in my project and also defining the stack and heap size for the program to use while running.
I am facing a weird problem which is like at...