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

Programming Exercises

Check if a string is a palindrome.

Easy

Problem Statement

Check if a string is a palindrome.

Sample Input

str = "madam"

Sample Output

Palindrome

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
#include <stdio.h> #include <string.h> int main() { char str[] = "madam"; int is_palindrome = 1; // Logic to check palindrome return 0; }
Log in or sign up to run or submit your code.Log inSign up
Input
str = "madam"
Expected Output
Palindrome