printing long hex

This is a discussion on printing long hex within the C Programming forums, part of the General Programming Boards category; How do I print a long int to the screen? I know that to print an int to the screen, ...

  1. #1
    Unregistered
    Guest

    Smile printing long hex

    How do I print a long int to the screen? I know that to
    print an int to the screen, I format it thus: printf("%d"...),
    but how do I print a long? Moreover, how do I do it
    in hex?

  2. #2
    Peaches
    Guest

    Question

    '%ld' to display long ints, and '%x' to show it in hex.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error: double free or corruption
    By dsc in forum C Programming
    Replies: 3
    Last Post: 04-03-2008, 09:26 AM
  2. Hex Editing help and information please...
    By SG57 in forum C Programming
    Replies: 9
    Last Post: 06-25-2006, 12:30 AM
  3. How do i un-SHA1 hash something..
    By willc0de4food in forum C Programming
    Replies: 4
    Last Post: 09-14-2005, 05:59 AM
  4. extra word printing
    By kashifk in forum C++ Programming
    Replies: 2
    Last Post: 10-25-2003, 04:03 PM
  5. printing long text
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 08-24-2002, 01:43 AM

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