what I want is to save a string (with whitespaces) to "name" because "name"s from the user will be stored in another array (array of strings that is)Code:char name[30]; printf("Enter name: "); fflush(stdin); fgets(name,30,stdin);
can anyone help me on achieving that? i'm sorry i'm still a bit confused to using this fgets and stuff.. >.<