#include<stdio.h>
int main()
{
char str[20];
printf("enter string");
scanf("%s",&str);
printf("%s",str);
}
warning getting "format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[20]’ [-Wformat=]
scanf("%s",&str);"
why this warning?