Scanf

The scanf function allows you to accept input from standard in, which for us is generally the keyboard.

example :
   
scanf("%d", &d);


The scanf function uses the same placeholders as printf:

� int uses %d
� float uses %f
� char uses %c
� character strings use %s


put & in front of the variable used in scanf.
Next Page >>
<< Back to Electronics
Hosted by www.Geocities.ws

1