Why is that strcpy()
accepting char array pointer even though the definition of strcpy
is
char * strcpy( char * , const char * )
??
#include <stdio.h>
#include <string.h>
main()
{
char str[] = "Have A Nice Day";
char ptr[17];
strcpy(ptr, str);
printf("%s", ptr);
}