Search:

Type: Posts; User: gotyatech

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    16,458

    Ya ur point seems to be vaild. realloc also...

    Ya ur point seems to be vaild.

    realloc also does free....i checked it.

    check the following link u can find source code for realloc

    http://www.lua.org/source/src_lmem.c.html
  2. Replies
    6
    Views
    16,458

    Yes ,Realloc can be used to make memory area...

    Yes ,Realloc can be used to make memory area smaller.

    But Realloc dosen't free the memory that was allocated earlier.
    Memory can only be freed using free.
  3. Replies
    8
    Views
    1,413

    What is the exact reason for not using void main....

    What is the exact reason for not using void main.

    As far as i understand, people say int main should be used because a value should be returned to the OS.

    But i think compiler dose take care of...
  4. Replies
    7
    Views
    2,281

    Before using qsort please check whether you have...

    Before using qsort please check whether you have the libraray for that otherwise your program won't compile.

    On unix it usually come as Fortran Library routine.

    ( library named as libF77.a ).
    ...
  5. Replies
    8
    Views
    1,413

    For inserting in between the string u need to...

    For inserting in between the string u need to take one more temp variable
    Try this,




    #include <string.h>
    #include <stdio.h>

    void main(void){
  6. Replies
    8
    Views
    1,413

    simple, try this /* Here i is the...

    simple, try this




    /* Here i is the position of where to copy the newstring into another string */
    strcpy((another_string+(i-1)), newstring) ;
  7. Replies
    7
    Views
    2,281

    Here is simple code for sorting ...

    Here is simple code for sorting



    #include<stdio.h>

    int main()
    {

    int a[8] = {1,22,5,4,9,6,7};
  8. Replies
    7
    Views
    2,281

    Working in 'C'...why do u want one single command...

    Working in 'C'...why do u want one single command to sort....

    implement any of the sorting algo.

    linear sorting, quick sorting etc.

    Thats the best way to learn.
  9. Replies
    6
    Views
    2,543

    I really didn't get the question. What do u...

    I really didn't get the question.

    What do u mean by "How do i allocate new memory blocks at runtime"....malloc does memory allocation at runtime. ????

    For what do u want to alloacte new...
  10. Replies
    14
    Views
    27,147

    Hi Monster, I appreciate the peice of...

    Hi Monster,

    I appreciate the peice of code you wrote,
    But i think there is no need of so many logical AND's.

    the function p as follows will also work
Results 1 to 10 of 10