Sr Software Engineer Interview Questions

67,402 sr software engineer interview questions shared by candidates

Write a function in C that takes a string, and in-place xors the first char with the last, second with second last, etc., and after the middle part sets the char to 0. Do this efficiently. Is strlen after the function always equal to (strlen before +1)/2? When is it not?
avatar

Senior Software Engineer

Interviewed at Google

4.4
Jan 22, 2014

Write a function in C that takes a string, and in-place xors the first char with the last, second with second last, etc., and after the middle part sets the char to 0. Do this efficiently. Is strlen after the function always equal to (strlen before +1)/2? When is it not?

Viewing 2091 - 2100 interview questions

Glassdoor has 67,402 interview questions and reports from Sr software engineer interviews. Prepare for your interview. Get hired. Love your job.