fgets in C language

https://youtu.be/nOYl8q9r2kM #include <stdio.h> int main(void) { printf("Please enter a string: "); char text[10]; if (fgets(text, 10, stdin) != NULL) { printf("You entered: %s\n", text); } else { printf("Error in reading…