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

Pages: 1-

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: fartist 2011-11-10 20:08

%d is a class-B D but %c is a class A int

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

Name: OP (Forgot trip) 2011-11-10 21:59

>>3
Thank you...

Name: Richardo Stallmanu 2011-11-10 22:03

>>1
Fuck you
>>2
Fuck you
>>3
Fuck you
>>4
And fuck you too

Name: Anonymous 2011-11-10 23:09

>>5
what would you rather us learn?

GEEENTOOOh

Name: Anonymous 2011-11-11 1:19

>>3
long int
Actually, %ld is used for long int, %d is just int.
The d simply means that it prints an integer in the base 10 system.

Name: Cudder !MhMRSATORI!FBeUS42x4uM+kgp 2011-11-11 3:56


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