Program 1:
#include<stdio.h> #include<string.h> void main() { char a[20]; int i, len; printf("\nEnter the string:\n"); gets(a); len = strlen(a); for (i = 0; i < len / 2; i++) { if (a[i] != a[len - i - 1]) break; }
Information about resetting and configuring Mobile phones (Java, Android, Symbian etc), educational articles especially for programming in C, C++ and Java and more about Computers and operating systems
#include<stdio.h> #include<string.h> void main() { char a[20]; int i, len; printf("\nEnter the string:\n"); gets(a); len = strlen(a); for (i = 0; i < len / 2; i++) { if (a[i] != a[len - i - 1]) break; }