Senior software engineer interview questions shared by candidates
I completely froze on following question which could be useful in a function that reverses order of words. How would you move a chunk of memory in C++/C?
memmove function Interviewer was really trying to pull this one out of me, but I was just stumped. He was like: "you can copy it, or you can - what?" I had no clue, never heard of it. I think this one finally destroyed my chances.
i guess it can be moved by using pointer? Below is an answer on the stackoverflow http://stackoverflow.com/questions/6118432/how-to-reverse-words-one-by-one-in-c-using-pointers-and-arrays