which of the following is used to reverse the string?
Answers
Answered by
1
⎝⎝⫸⫷ANSWER⫸⫷⎠⎠
strrev
- Answer: To reverse a string, we use the function Is strrev(). The Str stands for the string part. When a programmer gives a string as an input, this function runs in the background from left to right and after going through it, it reverses the string from right to left.
Hope this will help you♥
Answered by
1
sᴛʀʀᴇᴠ
- ᴛᴏ ʀᴇᴠᴇʀsᴇ ᴀ sᴛʀɪɴɢ, ᴡᴇ ᴜsᴇ ᴛʜᴇ ғᴜɴᴄᴛɪᴏɴ ɪs sᴛʀʀᴇᴠ(). ᴛʜᴇ sᴛʀ sᴛᴀɴᴅs ғᴏʀ ᴛʜᴇ sᴛʀɪɴɢ ᴘᴀʀᴛ. ᴡʜᴇɴ ᴀ ᴘʀᴏɢʀᴀᴍᴍᴇʀ ɢɪᴠᴇs ᴀ sᴛʀɪɴɢ ᴀs ᴀɴ ɪɴᴘᴜᴛ, ᴛʜɪs ғᴜɴᴄᴛɪᴏɴ ʀᴜɴs ɪɴ ᴛʜᴇ ʙᴀᴄᴋɢʀᴏᴜɴᴅ ғʀᴏᴍ ʟᴇғᴛ ᴛᴏ ʀɪɢʜᴛ ᴀɴᴅ ᴀғᴛᴇʀ ɢᴏɪɴɢ ᴛʜʀᴏᴜɢʜ ɪᴛ, ɪᴛ ʀᴇᴠᴇʀsᴇs ᴛʜᴇ sᴛʀɪɴɢ ғʀᴏᴍ ʀɪɢʜᴛ ᴛᴏ ʟᴇғᴛ.
Similar questions
English,
4 months ago
Computer Science,
4 months ago
English,
4 months ago
Math,
8 months ago
Chemistry,
8 months ago
English,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago