#include int main(void) { int i,j,k; char st; printf(\"enter string\\n\"); scanf(\"%s\", st);
char st is a single character. Judging by the rest of your code, you probably intended to declare an array of characters:
char st
char st[80];