Strings and Characters in arrays.
I am pretty new to C and it would be so great if I could get some help asap.
I am currently trying to read a string from user input, so I have:
printf("please enter your name\n");
scanf ("%s", &name);
But here's the part i'm lost at:
so say the user enters their name 'jane'
I would like to capture each letter separately as characters, in an array, so I can print it out like
I would also like to then know how I assign a letter a number, like a-z is 1-26. So that jane could alternatively be printed out as
10, 1, 14, 5
ive tried everything I can think of. Please help!