Home » C Programming » Input & Output » Question
  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;
    }
    1. fputs
    2. fgets
    3. putc
    4. getc
    5. Compilation Error
Correct Option: E

Compilation Error



Your comments will be displayed only after manual approval.