Amazon Interview Question for Software Engineer / Developers


Country: United States




Comment hidden because of low score. Click to expand.
7
of 7 vote

All logical operators evaluate to either true or false (or 1 and 0), whereas bit-wise operators can evaluate to any number

- trunks7j February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
2
of 2 vote

a bit-wise operator considers each bit in the operand and a logical operator considers operand as a single.
if you perform logical OR on 3 and 4 the result will be 1 that is true as said in earlier reply
the bit-wise OR will give you a different result
3(011) logically ORed with 4(100) will give you 7(111)

- Harry February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

& is bitwise operator and && is logical operator.

In a&b the bitwise operator checks both the left hand side and right hand side bit by bit and compares.

The logical operator on the other hand operates on the boolean values of the variables.
In a && b, the logical operator first checks the left hand side i.e. a and if its true then only it checks b.

- nick February 14, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

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.

Learn More

Resume Review

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.

Learn More

Mock Interviews

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.

Learn More