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

Submitted by: Administrator
char * setEmpty(int len){
if (0>len) return NULL;
char * c = (char *) malloc(len+1);
memset(c, 0, len+1);
return c;
}
Submitted by: Administrator

Read Online Apple Job Interview Questions And Answers