1.

Identify N library function for line input and output in the following C code?
#include <stdio.h>
int N(char *str, FILE *iop);
{
int ch;
while (ch = *str++)
putc(ch, iop);
return ferror(iop) ? EOF : 0;
}

A. fputs
B. fgets
C. putc
D. getc
E. Compilation Error
Answer» F.


Discussion

No Comment Found

Related MCQs