Computer Science, asked by ettityagi5437, 1 year ago

Which of the following function is used to reverse the string?
a) strcpy
b) strIen
c) strcmp
d) None of these

Answers

Answered by orangesquirrel
6

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.

This is one of the more used functions in modern programming languages as it reduces the number of lines of codes to a great extent, thus increasing the coding efficiency.

Answered by smartbrainz
16

None of these function is used to reverse the string

Answer: Option (d)

Explanation:

The particular function that is used for reversing a string is strrev function. This function is recognized as a built-in function in the C program.

It is mainly well-defined in string.h header files. The symbolic representation of this function is char *strrev(char *str). Thus, this function is only used for reversing a given string.

 

Similar questions