#Array

1 messages · Page 1 of 1 (latest)

full vale
#

I want to print the content of the array with putchar
But I'm only getting the last digit of each integer

lean bridgeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

tribal sun
#

You're only getting the last digit because you're telling it to get the last digit with the %10

full lynx
#

and putchar only takes one character to print

full vale
full lynx
#

use printf()

full vale
tribal sun
#

printf() is how you do it

#

or multiple putchar calls

full lynx
#

different putchar calls is how you do it with only putchar ^

full vale
#

Alright
Thank you
@full lynx @tribal sun

#

!solved