1.

What is the use of symbol * in the control string as shown [=%[*][width] [modifiers] type=]?(a) * is optional and used when the data should be read from the stream but ignored(b) * is not optional, used to read data from the stream but it is not ignored(c) * is not optional, it is used to read data stream but ignored(d) * is optional and used to read data from stream but it is not ignoredI had been asked this question in an online interview.Question is from scanf topic in division Input and Output in C of C

Answer»

The CORRECT choice is (a) * is optional and used when the data should be read from the stream but IGNORED

The best I can explain: * is an optional argument, it indicates that data should be read from the steam but ignored (not STORED in a MEMORY location)



Discussion

No Comment Found

Related InterviewSolutions