0

What's the difference between prepend and apprend.

3rd Jun 2020, 4:03 PM
Oluseyi Iyanuoluwa Praise
Oluseyi Iyanuoluwa Praise - avatar
2 Answers
+ 1
Name -> Iyanuoluwa Prepending Oluseyi to Name. Modified name -> Oluseyi Iyanuoluwa Appending Praise to Name. Modified name -> Iyanuoluwa Praise Prepending is to add something at the beginning whereas appending is to add something at the end.
3rd Jun 2020, 4:13 PM
Avinesh
Avinesh - avatar
+ 1
When working with text strings, append means to add text at the end of the string like an appendage or suffix. Prepend describes inserting text in front of the string like a prefix. Example: Given: str1 = "break" Append: str1 = str1 + "out" Result: str1 = "breakout" Prepend: str1 = "out" + str1 Result: str1 = "outbreak"
3rd Jun 2020, 4:27 PM
Brian
Brian - avatar