{"id":281,"date":"2020-02-23T19:07:37","date_gmt":"2020-02-23T19:07:37","guid":{"rendered":"https:\/\/codesupply.co\/quis-nascetur-aenean-ipsum-vici\/"},"modified":"2022-11-12T19:20:29","modified_gmt":"2022-11-12T19:20:29","slug":"c-program-to-compare-the-two-strings","status":"publish","type":"post","link":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/","title":{"rendered":"C Program to Compare the Two Strings"},"content":{"rendered":"<blockquote><p><strong>Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.\u00a0<\/strong><\/p><\/blockquote>\n<div>\n<div>#include&lt;stdio.h&gt;<\/div>\n<div>int stringcompare(char*,char*);<\/div>\n<div>int main()<\/div>\n<div>{<\/div>\n<div>charstr1[20]; \/\/ declaration of char array<\/div>\n<div>charstr2[20]; \/\/ declaration of char array<\/div>\n<div>printf(&#8220;Enter the first string : &#8220;);<\/div>\n<div>scanf(&#8220;%s&#8221;,str1);<\/div>\n<div>printf(&#8220;\\nEnter the second string : &#8220;);<\/div>\n<div>scanf(&#8220;%s&#8221;,str2);<\/div>\n<div>intcompare=stringcompare(str1,str2); \/\/ calling stringcompare() function.<\/div>\n<div>if(compare==0)<\/div>\n<div>printf(&#8220;strings are equal&#8221;);<\/div>\n<div>else<\/div>\n<div>printf(&#8220;strings are not equal&#8221;);<\/div>\n<div>return 0;<\/div>\n<div>}<\/div>\n<div>\/\/ Comparing both the strings using pointers<\/div>\n<div>int stringcompare(char *a,char *b)<\/div>\n<div>{<\/div>\n<div>intflag=0;<\/div>\n<div>while(*a!=&#8217;\\0&#8242; &amp;&amp; *b!=&#8217;\\0&#8242;) \/\/ while loop<\/div>\n<div>{<\/div>\n<div>if(*a!=*b)<\/div>\n<div>{<\/div>\n<div>flag=1;<\/div>\n<div>}<\/div>\n<div>a++;<\/div>\n<div>b++;<\/div>\n<div>}<\/div>\n<div><\/div>\n<div>if(flag==0)<\/div>\n<div>return0;<\/div>\n<div>else<\/div>\n<div>return1;<\/div>\n<div>}<\/div>\n<\/div>\n<figure id=\"attachment_4352\" aria-describedby=\"caption-attachment-4352\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4352\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C \" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/C-Program-to-Compare-the-Two-Strings-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4352\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0. \n","protected":false},"author":1,"featured_media":4353,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_singular_sidebar":"default","csco_page_header_type":"large_overlay","csco_page_load_nextpost":"default","csco_post_video_location":[],"csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0,"footnotes":""},"categories":[3],"tags":[32,33,34,35,36,37,38,39],"class_list":["post-281","post","type-post","status-publish","format-standard","has-post-thumbnail","category-incident-response","tag-buffer-overflow-attack-real-life-example","tag-buffer-overflow-c","tag-buffer-overflow-c-example","tag-buffer-overflow-code-injection-example","tag-buffer-overflow-command-line","tag-buffer-overflow-example","tag-how-to-avoid-buffer-overflow-in-c","tag-how-to-check-buffer-overflow-in-c","cs-entry","cs-video-wrap"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Jake Adebayo\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"@nootherjake - Cybersecurity, Apps &amp; SEO\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"C Program to Compare the Two Strings - @nootherjake\" \/>\n\t\t<meta property=\"og:description\" content=\"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1352\" \/>\n\t\t<meta property=\"og:image:height\" content=\"382\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-02-23T19:07:37+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-11-12T19:20:29+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/nootherjake\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@nootherjake\" \/>\n\t\t<meta name=\"twitter:title\" content=\"C Program to Compare the Two Strings - @nootherjake\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@nootherjake\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#blogposting\",\"name\":\"C Program to Compare the Two Strings - @nootherjake\",\"headline\":\"C Program to Compare the Two Strings\",\"author\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/c-pogramming-language.jpeg\",\"width\":1200,\"height\":688,\"caption\":\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\"},\"datePublished\":\"2020-02-23T19:07:37+00:00\",\"dateModified\":\"2022-11-12T19:20:29+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#webpage\"},\"articleSection\":\"Incident Response, Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nootherjake.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/category\\\/incident-response\\\/#listItem\",\"name\":\"Incident Response\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/category\\\/incident-response\\\/#listItem\",\"position\":2,\"name\":\"Incident Response\",\"item\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/category\\\/incident-response\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#listItem\",\"name\":\"C Program to Compare the Two Strings\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#listItem\",\"position\":3,\"name\":\"C Program to Compare the Two Strings\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/category\\\/incident-response\\\/#listItem\",\"name\":\"Incident Response\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#organization\",\"name\":\"@nootherjake\",\"description\":\"Cybersecurity, Apps & SEO\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/\",\"telephone\":\"+16504719987\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Jake-logo-fully-black-2-e1684726136283.png\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#organizationLogo\",\"width\":216,\"height\":61,\"caption\":\"@nootherjake: Cybersecurity Engineer & Information Security Analyst | Penetration Testing, Governance,\\u00a0Risk, and Compliance.\"},\"image\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/nootherjake\",\"https:\\\/\\\/x.com\\\/nootherjake\",\"https:\\\/\\\/instagram.com\\\/nootherjake\",\"https:\\\/\\\/pinterest.com\\\/nootherjake\",\"https:\\\/\\\/youtube.com\\\/nootherjake\",\"https:\\\/\\\/linkedin.com\\\/in\\\/nootherjake\",\"https:\\\/\\\/tumblr.com\\\/nootherjake\",\"https:\\\/\\\/yelp.com\\\/biz\\\/nootherjake\",\"https:\\\/\\\/soundcloud.com\\\/nootherjake\",\"https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/nootherjake\",\"https:\\\/\\\/myspace.com\\\/nootherjake\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/#author\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/\",\"name\":\"Jake Adebayo\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6c175d0b7d421fa110348c427da354edfb6f1315e52cbd33d455ada90124cd45?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Jake Adebayo\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#webpage\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/\",\"name\":\"C Program to Compare the Two Strings - @nootherjake\",\"description\":\"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/c-pogramming-language.jpeg\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#mainImage\",\"width\":1200,\"height\":688,\"caption\":\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/c-program-to-compare-the-two-strings\\\/#mainImage\"},\"datePublished\":\"2020-02-23T19:07:37+00:00\",\"dateModified\":\"2022-11-12T19:20:29+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/\",\"name\":\"@nootherjake\",\"description\":\"Cybersecurity, Apps & SEO\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"C Program to Compare the Two Strings - @nootherjake","description":"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.","canonical_url":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#blogposting","name":"C Program to Compare the Two Strings - @nootherjake","headline":"C Program to Compare the Two Strings","author":{"@id":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/#author"},"publisher":{"@id":"https:\/\/nootherjake.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/c-pogramming-language.jpeg","width":1200,"height":688,"caption":"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C"},"datePublished":"2020-02-23T19:07:37+00:00","dateModified":"2022-11-12T19:20:29+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#webpage"},"isPartOf":{"@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#webpage"},"articleSection":"Incident Response, Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C"},{"@type":"BreadcrumbList","@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/nootherjake.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/category\/incident-response\/#listItem","name":"Incident Response"}},{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/category\/incident-response\/#listItem","position":2,"name":"Incident Response","item":"https:\/\/nootherjake.com\/blog\/category\/incident-response\/","nextItem":{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#listItem","name":"C Program to Compare the Two Strings"},"previousItem":{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#listItem","position":3,"name":"C Program to Compare the Two Strings","previousItem":{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/category\/incident-response\/#listItem","name":"Incident Response"}}]},{"@type":"Organization","@id":"https:\/\/nootherjake.com\/blog\/#organization","name":"@nootherjake","description":"Cybersecurity, Apps & SEO","url":"https:\/\/nootherjake.com\/blog\/","telephone":"+16504719987","logo":{"@type":"ImageObject","url":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-2-e1684726136283.png","@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#organizationLogo","width":216,"height":61,"caption":"@nootherjake: Cybersecurity Engineer & Information Security Analyst | Penetration Testing, Governance,\u00a0Risk, and Compliance."},"image":{"@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#organizationLogo"},"sameAs":["https:\/\/facebook.com\/nootherjake","https:\/\/x.com\/nootherjake","https:\/\/instagram.com\/nootherjake","https:\/\/pinterest.com\/nootherjake","https:\/\/youtube.com\/nootherjake","https:\/\/linkedin.com\/in\/nootherjake","https:\/\/tumblr.com\/nootherjake","https:\/\/yelp.com\/biz\/nootherjake","https:\/\/soundcloud.com\/nootherjake","https:\/\/en.wikipedia.org\/wiki\/nootherjake","https:\/\/myspace.com\/nootherjake"]},{"@type":"Person","@id":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/#author","url":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/","name":"Jake Adebayo","image":{"@type":"ImageObject","@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6c175d0b7d421fa110348c427da354edfb6f1315e52cbd33d455ada90124cd45?s=96&d=mm&r=g","width":96,"height":96,"caption":"Jake Adebayo"}},{"@type":"WebPage","@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#webpage","url":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/","name":"C Program to Compare the Two Strings - @nootherjake","description":"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/nootherjake.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#breadcrumblist"},"author":{"@id":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/#author"},"creator":{"@id":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/c-pogramming-language.jpeg","@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#mainImage","width":1200,"height":688,"caption":"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C"},"primaryImageOfPage":{"@id":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/#mainImage"},"datePublished":"2020-02-23T19:07:37+00:00","dateModified":"2022-11-12T19:20:29+00:00"},{"@type":"WebSite","@id":"https:\/\/nootherjake.com\/blog\/#website","url":"https:\/\/nootherjake.com\/blog\/","name":"@nootherjake","description":"Cybersecurity, Apps & SEO","inLanguage":"en-US","publisher":{"@id":"https:\/\/nootherjake.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"@nootherjake - Cybersecurity, Apps &amp; SEO","og:type":"article","og:title":"C Program to Compare the Two Strings - @nootherjake","og:description":"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.","og:url":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/","og:image":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png","og:image:secure_url":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png","og:image:width":1352,"og:image:height":382,"article:published_time":"2020-02-23T19:07:37+00:00","article:modified_time":"2022-11-12T19:20:29+00:00","article:publisher":"https:\/\/facebook.com\/nootherjake","twitter:card":"summary_large_image","twitter:site":"@nootherjake","twitter:title":"C Program to Compare the Two Strings - @nootherjake","twitter:description":"Write a program to compare two strings by passing them to a function. The function will return 1 if both the strings are the same, else it returns 0.","twitter:creator":"@nootherjake","twitter:image":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png"},"aioseo_meta_data":{"post_id":"281","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"open_ai":null,"ai":null,"created":"2023-05-30 17:44:52","updated":"2025-08-01 16:10:43","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/nootherjake.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/nootherjake.com\/blog\/category\/incident-response\/\" title=\"Incident Response\">Incident Response<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tC Program to Compare the Two Strings\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/nootherjake.com\/blog"},{"label":"Incident Response","link":"https:\/\/nootherjake.com\/blog\/category\/incident-response\/"},{"label":"C Program to Compare the Two Strings","link":"https:\/\/nootherjake.com\/blog\/c-program-to-compare-the-two-strings\/"}],"_links":{"self":[{"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":4,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":4356,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions\/4356"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/media\/4353"}],"wp:attachment":[{"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}