cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
issue with character array
issue with character array
Mar 11, 2013 at 12:35am UTC
rohanshah1
(32)
sol
Last edited on
Mar 11, 2013 at 1:13am UTC
Mar 11, 2013 at 12:41am UTC
cire
(8284)
ptr -> s_name[100] = name[100];
sets the 101st element of s_name to the 101st element of name. Note that neither s_name nor name have 101st elements.
http://www.cplusplus.com/reference/cstring/strcpy/
Last edited on
Mar 11, 2013 at 12:42am UTC
Mar 11, 2013 at 12:46am UTC
rohanshah1
(32)
Thanks I got it.
Last edited on
Mar 11, 2013 at 1:02am UTC
Mar 11, 2013 at 2:06am UTC
Zhuge
(4664)
Is there some reason you deleted your post?
Mar 11, 2013 at 2:13am UTC
closed account (
Dy7SLyTq
)
yes. he solved it so he took it off
Mar 11, 2013 at 2:30am UTC
Zhuge
(4664)
Maybe I should have been more specific... I wanted to know if there was a good reason. The only difference between made by deleting your post and leaving it up after having it solved is that in the former case no one else can learn anything from it.
Topic archived. No new replies allowed.