CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES C DETAILS
Question :
How can you determine the maximum value that a numeric variable can hold?
Category C Interview Questions
Rating (5.0) By 14 users
Added on 10/22/2004
Views 3089
Rate it!
Answers:

For integral types, on a machine that uses two?s complement arithmetic (which is just about any machine you?re likely to use), a signed type can hold numbers from ?2(number of bits ? 1) to +2(number of bits ? 1) ? 1. An unsigned type can hold values from 0 to +2(number of bits) ? 1. For instance, a 16-bit signed integer can hold numbers from ?2^15 (?32768) to +2^15 ? 1 (32767).





If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
When should a type cast be used?
View Answer
When should a type cast not be used?
View Answer
Is it acceptable to declare/define a variable in a C header?
View Answer
What is the difference between declaring a variable and defining a variable?
View Answer
Can static variables be declared in a header file?
View Answer
What is the benefit of using const for declaring constants?
View Answer
What is the easiest sorting method to use?
View Answer
What is the quickest sorting method to use?
View Answer
How can I sort things that are too large to bring into memory?
View Answer
What is the easiest searching method to use?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/1055/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.62