Author: Barry SchwarzBarry Schwarz Date: May 6, 2008 23:38
On Mon, 5 May 2008 16:01:53 -0500 (CDT), C lang
gmail.com> wrote:
>Can scanf be use as a function?if so plz describe.
scanf is a function. Therefore it must be used as a function. The
return value is the number of conversions successfully performed. For
example,
int y;
int x = scanf("%%d", &y);
As with most functions, your are also allowed to ignore (or discard)
the return value, as in
scanf("%%d",&y);
Remove del for email
--
comp.lang.c.moderated - moderation address: clcm@ plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
|