Interview Question

Linux Kernel Engineer Interview

-

Qualcomm

Write a shortest string copy function.

AnswerAdd Tags

Interview Answers

3 Answers

4

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

Anonymous on

1

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

kr on

0

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

avjunky on

Add Answers or Comments

To comment on this, Sign In or Sign Up.