Write a function:
char * CreateEmptyString(int len);
function should return an pointer to an empty string of length len
Submitted by: Administratorchar * setEmpty(int len){
if (0>len) return NULL;
char * c = (char *) malloc(len+1);
memset(c, 0, len+1);
return c;
}
Submitted by: Administrator
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
Top Apple Questions
☺ | Explain popular apps of iPhone? |
☺ | Explain iphone architecture? |
☺ | How to parse a phone number from a huge database of a n billion webpages in 30 minutes |
☺ | Design a chess game. Basics of a chess game was explained and a player could be human or AI? |
☺ | Please explain the difference between shallow copy and deep copy? |
Top Companies Job Categories
☺ | TCS Interview Questions. |
☺ | Infosys Interview Questions. |
☺ | IBM Interview Questions. |
☺ | Wipro Interview Questions. |
☺ | Google Interview Questions. |