Summary of ur question
#include<stdio.h>
int main()
{
char *ptr = "geeksforgeeks";
printf("%s\n", *ptr);
return 0;
}
*ptr means value at that location, it cannot be a string. Value at a location can only be a character. But u want to print total string. That is why it is giving segmentation fault