Loc
0
Q:

fgets c

<open file>
while(fgets(<char array>, <size of array>, <file pointer>) != null)
4
// C program to illustrate 
// fgets() 
#include <stdio.h> 
#define MAX 15 
int main() 
{ 
    char buf[MAX]; 
    fgets(buf, MAX, stdin); 
    printf("string is: %s\n", buf); 
  
    return 0; 
} 
1

New to Communities?

Join the community