Toggle navigation
Log in
Sign Up
Log in
Sign Up
Appium
C
C#
C++
Docker
Go
Informatica
Java
JavaScript
Kafka
Numpy
Oracle
Pandas
PHP
Py Spark
Python
R
React Native
Scipy
SFTP
Tableau
Teradata
TGMC
UNIX
Introducing
Radical.sh
Forget Code launches a powerful code generator for building API's
Forget_Code.Models.CategoryViewModel
Add a new snippet
Access Specifier
1
Algorithms
9
Applications
2
Array
8
Basics
7
Classes
10
Control Statements
5
Conversion Functions
16
Data Structures
13
Exception Handling
8
File
33
Generics
19
Keywords
3
Loops
6
Math Functions
1
Math Snippets
2
Memory Management
3
Misc
1
OOPS
24
Operators
23
Pointers
13
String Functions
1
String Snippets
9
Type Casting
5
Unit Testing
1
Choose Category
Palindrome program without using string function in C++
Forget Code
C++
Palindrome program without using string function
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
char inpString[100];
cout<<"Enter the String (Max 99 Characters)\t:";
cin>>inpString;
int strLength = 0;
int i,j;
for (i = 0; i < 100; i++)
{
if(inpString[i] != '\0')
strLength++;
else
break;
}
for(i = 0, j=strLength-1; i < strLength-1/2; i++,j--)
{
if(inpString[i] != inpString[j])
{
cout<<"Given String is Not Palindrome";
getch();
return 0;
}
}
cout<<"Given String is Palindrome";
getch();
return 0;
}
Tags for Palindrome program without using string function in C++
pallindrome program in c using functions
palindrome without using string c
palindrome program withiout using string function in c
palindrome program in c using function
palindrome c math without strings
C Palindrone using class Pstring
C Palindrome code that works
Contribute to Forget Code, help others.
Add snippet