Implement a function to reverse a string "programming".
MediumProblem Statement
Implement a function to reverse a string "programming".
Sample Input
programming
Sample Output
Reversed string: gnimmargorp
Limits
Time: 2s · Memory: 256 MB
Code Editor
00:00
#include <stdio.h>
#include <string.h>
void reverseString(char str[]) {
// Your code here
}
int main() {
char str[] = "programming";
reverseString(str);
printf("Reversed string: %s\n", str);
return 0;
}
Input
programming
Expected Output
Reversed string: gnimmargorp