fprintf() in C
fprintf is used to print content in file instead of stdout console.
int fprintf(FILE *fptr, const char *str, ...);
Input: GeeksforGeeks GeeksQuiz Output: sample.txt file now having output as 0. GeeksforGeeks 1. GeeksQuiz
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.