Probably an easy or dumb question

Robert Seals rds95 at leah.Albany.Edu
Thu Aug 10 23:30:29 AEST 1989


Hello frenz, is it workable to pass only the base address of an array
to "?scanf" and have it convert into successive memory locations?

int    d[4];

scanf("%d %d %d %d", d);

I guess the question is whether "scanf" uses the format string or
the number of arguments to determine how many thingies to convert.
So, what is it?

rob



More information about the Comp.lang.c mailing list