A question on string literals
- From: junky_fellow@xxxxxxxxxxx
- Date: 9 Aug 2005 02:09:27 -0700
char *str1 = "Hello";
char arr1[] = { "Hello" };
char arr2[] = { 'H', 'e', 'l', 'l', 'o' };
Is it legal to modify str1, arr1 and arr2 ?
.
- Follow-Ups:
- Re: A question on string literals
- From: pete
- Re: A question on string literals
- From: Mark McIntyre
- Re: A question on string literals
- From: Default User
- Re: A question on string literals
- From: Suman
- Re: A question on string literals
- From: Krishanu Debnath
- Re: A question on string literals
- From: Sriram Rajagopalan
- Re: A question on string literals
- Prev by Date: Re: Extra Comma in enum is Valid?
- Next by Date: Re: A question on string literals
- Previous by thread: Extra Comma in enum is Valid?
- Next by thread: Re: A question on string literals
- Index(es):