My issue
why is it char x[10];??
My code
#include <stdio.h>
int main(void) {
stdin x;
scanf("%s", &x);
printf("Hello %s", x);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
why is it char x[10];??
#include <stdio.h>
int main(void) {
stdin x;
scanf("%s", &x);
printf("Hello %s", x);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
@blazingbreaker
its syntax in C to take the input of string .
U can have any size string as u want like for char x[10] the maximum size of the string will be of size 10.