add 2 chars without using strncopy ?
Posted
by every_answer_gets_a_point
on Stack Overflow
See other posts from Stack Overflow
or by every_answer_gets_a_point
Published on 2010-04-26T18:53:37Z
Indexed on
2010/04/26
19:03 UTC
Read the original article
Hit count: 129
c++
how would i manually add two chars without using the strncopy function?
can i just say char1 + char2?
or would i have to write a for loop to get individual elements and add them like this:
addchar[0] = char1[0];
addchar[1] = char1[1];
etc
etc
addchar[n] = char2[0];
addchar[n+1] = char2[1];
etc
etc
© Stack Overflow or respective owner