prog.c: In function 'main':
prog.c:6:13: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
scanf("%s%s",str1,str2);
^
prog.c:6:15: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int *' [-Wformat=]
scanf("%s%s",str1,str2);
^
prog.c:7:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
for(i=0;i<strlen(str1);i++)
^~~~~~
prog.c:7:15: warning: incompatible implicit declaration of built-in function 'strlen'
prog.c:7:15: note: include '<string.h>' or provide a declaration of 'strlen'
prog.c:7:22: warning: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
for(i=0;i<strlen(str1);i++)
^~~~
prog.c:7:22: note: expected 'const char *' but argument is of type 'int *'
prog.c:10:23: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
{printf("%s is not a prefix of %s",str1,str2);
^
prog.c:10:45: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int *' [-Wformat=]
{printf("%s is not a prefix of %s",str1,str2);
^
prog.c:15:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
printf("%s is a prefix of %s",str1,str2);
^
prog.c:15:29: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int *' [-Wformat=]
printf("%s is a prefix of %s",str1,str2);
^