See here no error is present.
#include <stdio.h>
int main(int argc, char *argv[])
{
while (*argv != NULL)// that means argv array is not reached end of string
printf("%s\n", *(argv));// here pointer is pointing to one address
argv++;// here it is pointing to next address
return 0;
}
It contain program name because argv contains program name at element 0 and command line argument when argc is 1