Hi all
I have ben trying most of the day but i just don't understand how to do this,
So far i figure out i need to array of chars so i started with
so for example:
but this returns odd characters and not what was entered
Could anyone show me where am going wrong
I have ben trying most of the day but i just don't understand how to do this,
So far i figure out i need to array of chars so i started with
so for example:
Code:
#include <stdio.h>
#include <string.h>
main(){
char name[25];
printf("what is your name?");
scanf("s%", &name);
printf("welcome, c%", name);
}
but this returns odd characters and not what was entered
Could anyone show me where am going wrong







