Broadcom
3.4 of 5 805 reviews
www.broadcom.com Irvine, CA 5000+ Employees

Broadcom Embedded Software Engineer Interview Question

I interviewed in San Diego, CA and was asked:
"Implement strcpy function and show me if there are any limitation of this function. what if the 2 buffers passed to the strcpy function overlaps ?"
Add Tags [?]
Answer Flag Question

Part of a Embedded Software Engineer Interview Review - one of 340 Broadcom Interview Reviews

Answers & Comments

0
of 1
vote
In strcpy even if the buffer overlaps , we can do successful data copy if we change the order of copying.(in reverse order or forward order)
- Interview Candidate on Jul 20, 2011 Flag Response
0
of 0
votes
If copying takes place between objects that overlap, the behavior is undefined.
- Anonymous on Dec 8, 2012 Flag Response

To comment on this question, Sign In with Facebook or Sign Up


Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at Broadcom interview questions and advice. All interview reviews posted anonymously by Broadcom employees and interview candidates.