FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
C-Code-Examples/Palindrome_with_Function.cpp at master · Derrick1908/C-Code-Examples · GitHub
Derrick1908
/
C-Code-Examples
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
C-Code-Examples
/
Palindrome_with_Function.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (18 loc) · 520 Bytes
Breadcrumbs
C-Code-Examples
/
Palindrome_with_Function.cpp
Copy path
File metadata and controls
24 lines (18 loc) · 520 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
include
<
stdio.h
>
#
include
<
conio.h
>
#
include
<
string.h
>
void
main
()
{
char
original[
20
], reverse[
20
];
int
compare;
printf
(
"
\n
Enter the String ::
"
);
gets_s
(original,
20
);
strcpy_s
(reverse, original);
/*
Makes a copy of the Original String
*/
_strrev
(reverse);
/*
Reverses the String
*/
compare =
strcmp
(original, reverse);
if
(compare ==
0
)
printf
(
"
\n
The String '%s' is a Palindrome
"
,original);
else
printf
(
"
\n
The String '%s' is not a Palindrome
"
, original);
_getch
();
}
Back
|
FazBrowse Home
|
New Git URL