Thread: data types help

  1. #1
    Registered User
    Join Date
    Jun 2002

    Exclamation data types help

    I know the three main data types in basic C.
    Integers, Characters, and Floating Point data.
    When I'm specifying the type of data, would "%d" be integer data?


  2. #2
    Join Date
    Aug 2001
    Groningen (NL)
    Yes. %d is integer, %c is character and %f is floating point. There are more, like %x which gives the value in hexadecimal notation and %s can be used for strings.

  3. #3
    Registered User
    Join Date
    Jun 2002
    Thanks man, My book, Absolute Beginner's Guide to C, tells me about it somewhere, I've seen it before. But I was just curious. Thank you again

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extending basic data types.
    By nempo in forum C++ Programming
    Replies: 23
    Last Post: 09-25-2007, 03:28 PM
  2. Replies: 4
    Last Post: 06-14-2005, 05:45 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM
  5. Using enumerated data types
    By SXO in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2001, 06:26 PM