Computer · AI/Programming/Inventors · 2016
The function sprintf ( ) works like printf( ), but operates on:
- AString ✓
- Bstdin
- CData in a file
- 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
| Subject | Computer MCQs |
|---|---|
| Topic | AI/Programming/Inventors |
| Paper | Inspector 2016 |
| Year | 2016 |
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 itMore AI/Programming/Inventors MCQs
- Who was a co-founder of the Microsoft Corporation?Answer: Bill Gates
- Who is the founder of social media network Facebook?Answer: Mark Zuckerberg
- Bill Gates is the founder of:Answer: Microsoft
- Who was the founder of Facebook?Answer: Mark Zuckerberg
- Software mistakes during coding are know as?Answer: Bugs
- A do-while loop is an ______ loop.Answer: Exit-controlled
- Who developed the Windows computer operating system?Answer: Bill Gates
- Who was the inventor of Mouse?Answer: Douglas Engelbart
All AI/Programming/Inventors MCQs › · All Computer topics › · The whole Inspector 2016 paper ›

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