Code:
#include <stdio.h>

int main()
{
    char *p[] = {"One","Two","Three"};
    int i=0;
    while(p[i] != NULL)
        printf("%s\n", p[i++]);

    return 0;
}
EOF and other constants do not help instead of NULL, it still produces a segmentation error. I need to make sure that regardless of the number of elements in the array, they are all displayed on the screen and then the while loop is turned off, and without any segmentation errors.
Questions to answer the question is not necessary, I studied this topic but the answer was not found.