I new to programming and I don't fully quite understand how to properly assign and carry out a char array within a 'for loop' statements. I attempted to do a basic task by declaring a character array to hold up to 15 characters, ask user my name, and storing it into the character array.
This is what I have attempted so far:
int main (void)
char name ;
scanf("%s", &name );