I am going through a book and one of the question it asks.
Write a program that shows you how much memory a float consumes. On your Mac, a short is a 2-byte integer, and one bit is used to hold the sign (positive or negative). what is the smallest number it can store? What is the largest? An unsigned short only holds non-negative numbers. What is the largest number it can store?
So i get the first part about how much memory a float consumes but i do not get how to find the smallest or largest number. can someone explain?
Thanks in Advance S.