Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C - Learning - scanf

Name: OP !!tSyHg6lpr3Vq9L1 2011-11-10 19:59

I started learning C yesterday, and got confused about "scanf"

What would be the difference between %d or %c?

Name: Anonymous 2011-11-10 20:41

>>1
%d is used for signed integers (normals Int, long int, etc)
%c is used for print an ASCII value as a character

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List