

InterviewSolution
Saved Bookmarks
1. |
The library function used to reverse a string is |
Answer» strrev(s) Reverses all characters in s Example: #include <string.h> #include <stdio.h> int main(void) { char *str = "IndiaBIX"; printf("Before strrev(): %s\n", str); strrev(str); printf("After strrev(): %s\n", str); return 0; } Output: Before strrev(): IndiaBIX After strrev(): XIBaidnI | |