Qualcomm Interview Question

Write a shortest string copy function.

Interview Answers

Anonymous

Jun 19, 2009

while(str++ = dst++) {}

4

Anonymous

Mar 5, 2010

I should be like the following. while (*str++ = *dst++) {}

1

Anonymous

Apr 6, 2010

or simplified to: while(*xptr++ = *yptr++);