bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

commit 42a5d0c0df1b991f0d985a4938177517da3a9b53
parent ba9a8d90ba392801c51377e4f89028aed8df9350
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Tue, 31 Mar 2026 20:39:35 +0530

Correct fprintf syntax in pc016.c

Fix missing parentheses in fprintf call.
Diffstat:
MSemester_1/practice-c/pc016.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Semester_1/practice-c/pc016.c b/Semester_1/practice-c/pc016.c @@ -107,7 +107,8 @@ bool writeLog(Book *book, int n) } for (i = 0; i < n; i++) { - fprintf(output, "%d \'%s\' \'%s\'\n", book[i].id, book[i].title, book[i].author); + fprintf(output, "%d \'%s\' \'%s\'\n", book[i].id, book[i].title, book[i].author } + fclose(output); return true; }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror