#include int main(void) { int i,j,k; char st; printf(\"enter string\\n\"); scanf(\"%s\", st);
st is type of char &st is type of char * Take care of the difference. BTW, only one char cannot be used to store a string. Use char[] array.