Answers

Question and Answer:

  Home  Apple

⟩ Write a functionchar * CreateEmptyString(int len);function should return an pointer to an empty string of length len

char * setEmpty(int len){

if (0>len) return NULL;

char * c = (char *) malloc(len+1);

memset(c, 0, len+1);

return c;

}

 191 views

More Questions for you: