I have been experiencing problems in using the gets() command in C. Whenever I use it twice followed by scanf for eg:
char name,add; printf("Enter name : "); gets(name); printf("Enter address :"); gets(add); printf("Enter age :"); scanf("%d",age);
Here it skips name.(doesnot take input of name!)
It doesnot input both the name and address. It skips one of them and this occurs only when i use scanf also. And "scanf" has problem with spaces so i cant use that for strings. Pls help me out!