Thread: Just wanted to share this

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Registered User SCRIPT_KITTEH's Avatar
    Join Date
    Apr 2013
    Posts
    74
    Quote Originally Posted by ronin View Post
    The if statement had nothing to do with the digits, but whether or not the input received from the user was valid for the data type being used.
    Right, I just don't understand how it works though from looking at the code.

    Quote Originally Posted by ronin View Post
    scanf returns an integer that represents how many items were properly converted and stored.
    I don't understand the use of "return" in this sentence errr... the whole sentence at all really.

    Quote Originally Posted by ronin View Post
    Since number hadn't been initialized, its value could have been anything including 0 if you were lucky.
    initialized? :\ Yeah, I understand the theory of what you're saying about user input, & I appreciate the advice, I just don't understand how the code works to put it into practice...
    Last edited by SCRIPT_KITTEH; 05-06-2013 at 04:39 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. funny thing i wanted to share
    By Logan1033 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 08-21-2006, 02:46 AM
  2. Share with us!
    By ILoveVectors in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-24-2005, 05:15 PM