Define and explain scanf () function?

Author Topic: Define and explain scanf () function?  (Read 570 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
Define and explain scanf () function?
« on: 04-08-2016, 05:25:26 »
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.


Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 50
  • Posts: 893
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: Define and explain scanf () function?
« Reply #1 on: 04-19-2016, 03:56:12 »
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.
Your ideas, our writings - Writology.com

 

Related Topics

  Subject / Started by Replies Last post
16 Replies
4134 Views
Last post 06-29-2015, 23:51:46
by Harish
3 Replies
1684 Views
Last post 03-12-2013, 05:43:21
by Cathrine
6 Replies
2122 Views
Last post 04-21-2016, 02:22:09
by TomClarke
0 Replies
1108 Views
Last post 12-19-2015, 02:55:07
by chinmay.sahoo
0 Replies
508 Views
Last post 02-27-2016, 04:33:20
by chinmay.sahoo