Thread: Range of Values

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    24

    Range of Values

    How would i go about writing a simple program that would display the range of values for say

    integers
    long
    shorts

    thanks for your help

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    I might choose to print the values in <limits.h>. Other than that, show your attempt and we'll work from that.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. range of values in an if statement
    By cosmiccomputing in forum C Programming
    Replies: 3
    Last Post: 06-01-2008, 10:20 PM
  2. Random number in range generation.
    By hebali in forum C Programming
    Replies: 19
    Last Post: 03-04-2008, 10:46 AM
  3. Replies: 1
    Last Post: 12-30-2007, 10:08 AM
  4. reading values from a file
    By megastar in forum C Programming
    Replies: 4
    Last Post: 06-25-2007, 02:08 AM
  5. How to read in empty values into array from input file
    By wpr101 in forum C++ Programming
    Replies: 5
    Last Post: 11-28-2002, 10:59 PM