Search:

Type: Posts; User: Click_here

Search: Search took 0.06 seconds.

  1. Replies
    13
    Views
    5,173

    new_str is also declared as a char -> Not a char*...

    new_str is also declared as a char -> Not a char* which you can malloc memory to and not an array.
  2. Replies
    13
    Views
    5,173

    The value of new_str[i] becomes what the function...

    The value of new_str[i] becomes what the function "insert" is returning.

    And the function "insert" does not change the size of any character arrays. Instead it creates a new array of size...
  3. Replies
    13
    Views
    5,173

    And one more - What this one does ...

    And one more - What this one does


    printf("The new string is: %s", new_str);
  4. Replies
    13
    Views
    5,173

    Tell us what you think that this line does? ...

    Tell us what you think that this line does?


    new_str[i]= insert(origString, insertion_char, position_of_insertion);
Results 1 to 4 of 4