• 0

[c] Outputting Smilie Face


Question

4 answers to this question

Recommended Posts

  • 0

printf("%c", (char) 1);

should do it.

Also try "(char) 2" for a filled in smiley face. :)

If you want to see what the other codes are:

for (i = 0; i < 256; i ++)
    printf("%i: %c", i, (char) i);

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.