char *p="abc"; printf("%s", *(p+1)); //gives segmentation fault why?
Channel: Peter Schneider
Date: 2023-10-31

char *p="abc"; printf("%s", *(p+1)); //gives segmentation fault why?
I hope you found a solution that worked for you :)
 The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA  
Thanks to all those great people for their contributions!

 (stackoverflow.com/users/22714560/rajat-chakraborty)Rajat Chakraborty 
 (stackoverflow.com/users/3130521/greg-spears)greg spears 
 A special thanks goes out to the (https://stackoverflow.com/questions/77386235/char-p-abc-printfs-p1-gives-segmentation-fault-why)Stackexchange community 
 
 I wish you all a wonderful day! Stay safe :)
 
  c pointers arrays