Joined
Last Seen
0 Reputation Points
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #107.41K
Hi, I am a newbie in C and have this question with char pointer; [code=c] char * s = "hello world"; *(s+1) = 'a'; [/code] This is throwing a segfault error. Should'nt this work since I am modifying only one memory location. Also I have seen such code on the … |