please tell WHY this propagates error?(segmentation fault)
I'm trying to change first character with the code(just an example)Code:char *a; a="i'm A string!"; *a='I';//this line is logically wrong
---
thanks in advance
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Thread: char pointer questionThreaded View
|
Click Here to Expand Forum to Full Width |