Thread: Meaning of %hd

  1. #1
    Registered User
    Join Date
    Jan 2006

    Cool Meaning of %hd

    I am a newie and encounded the following code and do not know what it means:

    if ( scanf( %hd",&scores[i] ) !=1)
    Its the "%hd" that I do not understand.

    Your time is appreciated.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    The "%hd" used with a short int.
    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. The Meaning of Life: A Trick Question?
    By chix/w/guns in forum A Brief History of
    Replies: 14
    Last Post: 07-12-2004, 07:53 PM
  2. Replies: 8
    Last Post: 04-11-2003, 07:37 AM
  3. The meaning of "Duh"
    By Magos in forum A Brief History of
    Replies: 8
    Last Post: 02-26-2003, 01:46 PM
  4. would you help me with Linked list, please?
    By unhwan in forum C Programming
    Replies: 1
    Last Post: 06-11-2002, 12:24 AM
  5. WINAPI: Meaning of HDC ?
    By Mecnels in forum Windows Programming
    Replies: 1
    Last Post: 01-21-2002, 10:06 AM