so simple, but i found so many different ways to do it, but whats the easiest
all i want to do is take info and put it in the stucture
whats wrong with that?Code:#include <stdio.h>
struct info {
int ss_number;
char name[15];
}
i want to:
scanf("Please enter your ss number:");
gets(info.ss_number);
scanf("Please enter your name:";
gets(into.name)
printf("Your ss number is: %i", info.ss_number);
printf("Your name is: %s", info.name);