Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • hoho... actually it worked. But... i think i think... I'm doing a dumb mistake (I don't know about)... I'm inputting 1, 2 and 3 and when I print the array out I get the ASCII key codes of 1, 2 and 3. Why? Commented Nov 20, 2013 at 17:44
  • when you print the output, did you make sure that you use %c, not %d? If I enter 1 2 3 4 and use %d instead of %c I get 49 50 51 52 Commented Nov 20, 2013 at 17:51
  • thanks man, now it's flawless. (I was using %d before for printing) :) Commented Nov 20, 2013 at 18:05