#include <stdio.h> int main() { FILE *fp; fp = fopen("newfile", "w"); printf("%d\n", ferror(fp)); return 0; }
a) Compilation error
b) 0
c) 1
d) Any nonzero value
What is the output of the following C code if there is no error in stream fp?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the output of the following C code if there is no error in stream fp?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!