Concept Academy of Competitive Exams

Computer · AI/Programming/Inventors · 2016

The function sprintf ( ) works like printf( ), but operates on:

  1. AString ✓
  2. Bstdin
  3. CData in a file
  4. DStderr

Correct answer: A · String

In C, sprintf() writes formatted output into a character array (string) instead of to the screen, whereas printf() writes to stdout.

About this question

SubjectComputer MCQs
TopicAI/Programming/Inventors
PaperInspector 2016
Year2016
Practise more AI/Programming/Inventors MCQs

Study mode with answers, or a timed test with your score, on the free app.

Study this topic Take a test on it

More AI/Programming/Inventors MCQs

All AI/Programming/Inventors MCQs › · All Computer topics › · The whole Inspector 2016 paper ›

Computer book cover, 2027 Edition, Concept Academy
Learn it properly: Computer

Complete in four parts: Computer Fundamentals · Software, Operating Systems and Programming · Microsoft Office · Internet, Networks and New Technology · A complete course for the PPSC…

Rs 1,200 Rs 950 12.12 Sale · 20% off · eBook · the first 86 pages are free

See the book Read free