On Sun, Jan 23, 2005 at 11:56:11AM +0530, Krishna Mohan wrote:
> 
> main()
> {
>         char *ptr = "abc";
>         ptr[0] = 'p';

 Since ptr points to read-only mem, changing ptr[0] does not seem to be a very
wise idea.


-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to