Thread: ASCII Character in printf Statement

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    8

    Question ASCII Character in printf Statement

    Hello,

    How would I include the Extended ASCII character code 176 (degree sign) inside a printf statement in order to get an output such as 36º 52' 12" ?

    Regards,

    Jacques

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    The degree symbol is in extended ASCII position 248.
    Code:
    printf("%c", 248);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 10:25 AM
  2. decimal ascII character
    By byfreak in forum C Programming
    Replies: 2
    Last Post: 05-24-2008, 06:37 PM
  3. Replies: 11
    Last Post: 03-24-2006, 11:26 AM
  4. Double to Int conversion warning
    By wiznant in forum C Programming
    Replies: 15
    Last Post: 09-19-2005, 09:25 PM
  5. whats wrong with this?
    By petedee in forum C Programming
    Replies: 32
    Last Post: 01-06-2004, 10:28 PM