is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
I was asked a similar question during a phone interview.
According to the C standard, you are not supposed to modify a value more than one time between sequence points:
"Between the previous and next sequence point an object shall have its stored value modified at most once by the evaluation of an expression. Furthermore, the prior value shall be accessed only to determine the value to be stored."
Each of the assignment statements above falls within a single set of sequence point boundaries. (There is a sequence point at the beginning of the assignment statement and one at the end of the assignment statement, and none in between.) So, according to the standard, this is not a legal C or C++ program.
At least with gcc v4.6.1, the following code generates two different numbers depending on whether the optimizer is enabled:
- gregfjohnson April 29, 2012