I am trying to figure out a simple program, but I can't quite get it to work. What am I doing wrong here?
char* getpass()
{
char password[10];
scanf("%s\n", password);
return password;
}
I am trying to figure out a simple program, but I can't quite get it to work. What am I doing wrong here?
char* getpass()
{
char password[10];
scanf("%s\n", password);
return password;
}