My question is whether or not it is possible to directly pass the parsed stuff from (s)scanf to a function call. In other words whether I have to initialise the variables which I want to pass to the function (and read via scanf) or not.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
sscanfreturns the number of successful conversions. It does not return the converted values.So, you wouldn’t be passing in the newly converted data when passing the return value of
sscanfdirectly into another function (if that is what you are asking).