String Algorithms
Print this page
STRING COPY
By string copy, we mean copying one string to another string character by character.
The size of the destination string should be greater than equal to the size of the source string.
Algorithm
Set i=0
while STR[i] != '\o'
{
STR2[i]=STR1[i];
i =i+1;
}
Set STR2[i]='\o'
Return STR2
Prev
First
|
Next
|
End