Search:

Type: Posts; User: xxhimanshu

Search: Search took 0.00 seconds.

  1. Replies
    19
    Views
    11,328

    Hi, This is the first call to malloc and we...

    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...
  2. Replies
    19
    Views
    11,328

    Hi Salem, thanks for your prompt response this...

    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...
  3. Replies
    19
    Views
    11,328

    Malloc and calloc problem!!

    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...
Results 1 to 3 of 3