Hi guys,
I have tried running this code.
However, I get this output.Code:#include <stdio.h> #include <conio.h> int main(){ char name[20]; printf("Enter name: "); scanf_s("%s", name); printf("Your name is %s.", name); _getch(); return 0; }
Enter name: abcd
Your name is .
Why is the output blank space?