whether this is valid
From: madhur (madhur_at_sdf.com)
Date: 06/26/04
- Next message: CBFalconer: "Re: keyword extern"
- Previous message: tweak: "Re: keyword extern"
- Next in thread: Joona I Palaste: "Re: whether this is valid"
- Reply: Joona I Palaste: "Re: whether this is valid"
- Reply: Christian Bau: "Re: whether this is valid"
- Reply: CBFalconer: "Re: whether this is valid"
- Reply: madhur: "Re: whether this is valid"
- Reply: Barry Schwarz: "Re: whether this is valid"
- Reply: Emmanuel Delahaye: "Re: whether this is valid"
- Reply: Dan Pop: "Re: whether this is valid"
- Reply: Alex Monjushko: "Re: whether this is valid"
- Reply: Prawit Chaivong: "Re: whether this is valid"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 27 Jun 2004 02:19:43 +0530
Hello
char *a="str";
strcpy(a,"abc");
I have learnt that since "a" is a string literal, it might be allocated on
read only memory on some implementations.
Is it correct to modify a string literal using this way.
Madhur Ahuja
India
- Next message: CBFalconer: "Re: keyword extern"
- Previous message: tweak: "Re: keyword extern"
- Next in thread: Joona I Palaste: "Re: whether this is valid"
- Reply: Joona I Palaste: "Re: whether this is valid"
- Reply: Christian Bau: "Re: whether this is valid"
- Reply: CBFalconer: "Re: whether this is valid"
- Reply: madhur: "Re: whether this is valid"
- Reply: Barry Schwarz: "Re: whether this is valid"
- Reply: Emmanuel Delahaye: "Re: whether this is valid"
- Reply: Dan Pop: "Re: whether this is valid"
- Reply: Alex Monjushko: "Re: whether this is valid"
- Reply: Prawit Chaivong: "Re: whether this is valid"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|