fgets input from user

Solutions on MaxInterview for fgets input from user by the best coders in the world

showing results for - "fgets input from user"
Maya
19 Apr 2020
1
2// C program to illustrate
3// fgets()
4#include <stdio.h>
5#define MAX 15
6int main()
7{
8    char buf[MAX];
9    fgets(buf, MAX, stdin);
10    printf("string is: %s\n", buf);
11  
12    return 0;
13}
similar questions
queries leading to this page
fgets input from user