#include int main(void) { int i,j,k; char st; printf(\"enter string\\n\"); scanf(\"%s\", st);
As others have mentioned you want to create an array:
Change char st; to char st[10]; or whatever size array you want.
char st;
char st[10];
With the above change st is an array that has 10 individual elements that can hold a single char value.
st