Meaning of %hd

This is a discussion on Meaning of %hd within the C Programming forums, part of the General Programming Boards category; / I am a newie and encounded the following code and do not know what it means: Code: if ( ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    3

    Cool Meaning of %hd

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

    Code:
    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
    Posts
    5,006
    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 Cprogramming.com
    Replies: 14
    Last Post: 07-12-2004, 08:53 PM
  2. Replies: 8
    Last Post: 04-11-2003, 08:37 AM
  3. The meaning of "Duh"
    By Magos in forum A Brief History of Cprogramming.com
    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, 01:24 AM
  5. WINAPI: Meaning of HDC ?
    By Mecnels in forum Windows Programming
    Replies: 1
    Last Post: 01-21-2002, 10:06 AM

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