Interview Question

Anonymous Interview(Student Candidate) Culver City, CA

What is the difference between a signed and unsigned

  integer variable type?
Answer

Interview Answer

2 Answers

0

Signed can hold positive and negative numbers, unsigned numbers can only hold positive numbers (or 0)

Interview Candidate on Feb 9, 2012
0

signed value ranges from (-Max_Val, Max_Val), while signed goes from (0, 2*Max_Val). Max_Val is the predefined maximum value for the specific data type. They both have the same range of 2*Max_Val

Anonymous on Feb 13, 2013

Add Answers or Comments

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