Qualcomm Interview Question: Write a shortest string copy ... | Glassdoor

Interview Question

Linux Kernel Engineer Interview California City, CA

Write a shortest string copy function.


Interview Answer

3 Answers


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

kr on Mar 5, 2010

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

avjunky on Apr 5, 2010

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

Add Answers or Comments

To comment on this, Sign In or Sign Up.