Answers for "fgets input from user"

0

fgets input from user

// 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;
}
Posted by: Guest on April-20-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language