{"id":74,"date":"2021-09-20T12:12:29","date_gmt":"2021-09-20T12:12:29","guid":{"rendered":"https:\/\/ethosspace.com\/programmers\/?p=74"},"modified":"2021-10-11T11:52:47","modified_gmt":"2021-10-11T11:52:47","slug":"palindrome-in-c","status":"publish","type":"post","link":"https:\/\/ethosspace.com\/programmers\/palindrome-in-c\/","title":{"rendered":"Palindrome Code in c"},"content":{"rendered":"\n<p>Palindrome meaning word, phrase that reads the same backwards as forwards. for example Madam, Kayak, radar, civic, refer. See below code to accept input from user and check.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Program Name: Check if given string is palindrome or not. ( Run Program in Turbo C)\n*\/\n#include&lt;stdio.h&gt;\n#include&lt;string.h&gt;\nvoid main()\n{\n  char str&#91;50], str2&#91;50];\n  printf(\"\\n\\nEnter String to Check if given string is palindrome or not:\\t \");\n  scanf(\"%s\",str);\n  \/\/using strcpy function creating copy of string in string 2\n  strcpy(str2,str);\n  strrev(str2);  \n  \/\/This function is available in ANSI C compiler not in other.\n  \/\/using strrev function reversing the string.\n\n  \/\/ now comparing both string to check if they are same or not.\n  if(strcmp(str,str2)==0)\n     printf(\"\\n\\nGiven String is Palindrome\");\n  else\n    printf(\"\\n\\nGiven String is Not Palindrome\");\n}\/\/main\n\n\n<\/code><\/pre>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Output<\/h4>\n\n\n\n<div class=\"wp-block-columns has-white-color has-cyan-bluish-gray-background-color has-text-color has-background is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>\n\nEnter String to Check if given string is palindrome or not: kayak\n\n\n\nGiven String is Palindrome\n\n\nEnter String to Check if given string is palindrome or not: Software\n\n\nGiven String is Not Palindrome\n\n\n\n<\/code><\/pre>\n<\/div>\n<\/div>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Palindrome meaning word, phrase that reads the same backwards as forwards. for example Madam, Kayak, radar, civic, refer. See below code to accept input from user and check. Output<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-c-language"],"aioseo_notices":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"sparkling-featured":false,"sparkling-featured-fullwidth":false,"tab-small":false},"uagb_author_info":{"display_name":"program45_-rt8nb","author_link":"https:\/\/ethosspace.com\/programmers\/author\/program45_-rt8nb\/"},"uagb_comment_info":0,"uagb_excerpt":"Palindrome meaning word, phrase that reads the same backwards as forwards. for example Madam, Kayak, radar, civic, refer. See below code to accept input from user and check. Output","_links":{"self":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":6,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":278,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/74\/revisions\/278"}],"wp:attachment":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}