If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Define and explain scanf () function?

Started by chinmay.sahoo, 04-08-2016, 06:25:26

Previous topic - Next topic

chinmay.sahooTopic starter

Scanf() function get the input from the user. It contains two argument.
   First argument: - specify the datatype
   For example: - %f This tells that the value will be in floating point
   Second argument: - name in which the data to be stored
   For example: -  &f1 the entered value is stored in f1.


TomClarke

Scanf function  allows you to accept input from standard in, which for us is generally the keyboard. The scanf function can do a lot of different things, but it is generally unreliable unless used in the simplest ways. It is unreliable because it does not handle human errors very well. But for simple programs it is good enough and esy-to-use.


If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...