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

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

  • (A) String
  • (B) Stdin
  • (C) Data in a file
  • (D) Stderr
In C, sprintf() formats data in a similar manner to printf(), but instead of sending the information to the screen, it stores the information in a string, or a character array.This is the correct answer. sprintf() writes formatted output into a character array provided as its first argument, rather than to the console.
Facebook
WhatsApp
Related MCQs:

 ‘NATO’ is an abbreviation of:

  • (A) North Atlantic Treaty Organization
  • (B) Non-Aligned Treaty Organization
  • (C) Non-Aligned Trading Organization
  • (D) North American Transport Organization

You May Like

Comment

You cannot copy content of this page

Scroll to Top