Symantec Interview Question: What is the difference betwee... | Glassdoor

Interview Question

Summer Software Engineering Internship Interview(Student Candidate) Culver City, CA

What is the difference between a signed and unsigned

  integer variable type?

Interview Answer

2 Answers


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

Interview Candidate on Feb 9, 2012

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, Sign In or Sign Up.