Q. Which standard function writes to a file? (A) fprintf() (B) printf() (C) scanf() (D) cin ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (A) fprintf() Explanation: fprintf() is used to print formatted output to a file.