Please enter your email address or userHandle.
// C program to demonstrate the problem when // fgets()/gets() is used after scanf() #include<stdio.h> int main() { int x; char str[100]; scanf("%d\n", &x); fgets(str, 100, stdin); printf("x = %d, str = %s", x, str); return 0; }
https://ide.geeksforgeeks.org/nnfP2h
x = 10, str = test