Computer Science, asked by NobiNavita576, 1 year ago

The printf() function returns which value when an error occurs

Answers

Answered by ag21dec1989pa7b0j
2
printf() function returns value according to used formula but when error occurs it returns negative value.

hope this helps
mark brainliest
Answered by aroranishant799
0

Ques. The printf() function retunes which value when an error occurs

(A) Positive value

(B) Zero

(C) Negative value

(D) None of these

Answer:

The correct answer is option (C) Negative value.

Explanation:

  • The Printf() function prints "character," "string," "float," "integer," "octal," and "hexadecimal" data on the output screen.
  • On the standard output device, it is used to show messages as well as values (monitor).
  • The total number of printed characters is returned by printf as an integer value.
  • When an error occurs the printf() function returns a negative value.
  • The printf() function generates a formatted string and outputs it to the standard output.
  • This string can display formatted variables and special control characters like new lines, backspaces, and tab spaces, as well as special control characters like new lines, backspaces, and tab spaces.

#SPJ2

Similar questions