Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Implement a program to reverse a string using pointers.

Hard

Problem Statement

Implement a program to reverse a string using pointers.

Sample Input

str = 'Hello'

Sample Output

Reversed String = olleH

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
#include <stdio.h> #include <string.h> int main() { char str[] = "Hello"; // Logic to reverse the string return 0; }
Log in or sign up to run or submit your code.Log inSign up
Input
str = 'Hello'
Expected Output
Reversed String = olleH