data types help

This is a discussion on data types help within the C Programming forums, part of the General Programming Boards category; I know the three main data types in basic C. Integers, Characters, and Floating Point data. When I'm specifying the ...

  1. #1
    Bud
    Bud is offline
    Registered User
    Join Date
    Jun 2002
    Posts
    6

    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?

    Thanks,
    Bud

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    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
    Bud
    Bud is offline
    Registered User
    Join Date
    Jun 2002
    Posts
    6
    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
    Bud

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, 04:28 PM
  2. Replies: 4
    Last Post: 06-14-2005, 06:45 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 07:51 PM
  5. Using enumerated data types
    By SXO in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2001, 07:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21