#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
int main()
{
char org[50],r[50],m[50],a;
int i,j,c=0,length=0,h=0,g=0,z;
char token [3] [20] = { "void", "main", "int"};
printf("\nenter a line:");
gets(org);
for(i=0;org[i]!='\0';i++)
{
length++;
}
for(h=0;h<3;h++)
{
for(g=0;g<length;g++)
{
z=strcmp(org[g],token [h]);
if(z==0)
printf("Keyword:%s\n\n",m);
else
printf("NO_Keyword:%s\n\n",m);
}
}
printf("\n");
system("pause");
return 0;
}
it is showin this warning....[Warning] passing arg 1 of `strcmp' makes pointer from integer without a cast.
i am gettin command prompt as output in dev c++ software but when i enter string in command prompt and press enter then command prompt goes stop automatically.
tell me what is wrong in this program....and what is this wraning?????