I have tried the code below but it does not display the second name, only the first name. Everything else after the space is not being displayed.
Code:#include<stdio.h> main() { char name[20]; printf("name: "); scanf("%s", name); printf("\n%s", name); getch(); }