{"id":4422,"date":"2022-12-22T11:28:02","date_gmt":"2022-12-22T11:28:02","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=4422"},"modified":"2022-12-22T11:28:04","modified_gmt":"2022-12-22T11:28:04","slug":"c-program-to-find-the-length-of-string-without-using-strlen-function","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/c-program-to-find-the-length-of-string-without-using-strlen-function\/","title":{"rendered":"C program to Find the Length of String without Using strlen Function"},"content":{"rendered":"<p align=\"JUSTIFY\">In C language, if we want to get the length of the string, we usually make use of the strlen function. But in this video, we are going to learn about how can we calculate the length of a string, without using the strlen function. For this, we are just going to need to loop through the string, till the end, and in each iteration, we are counting the characters, and once we are out of the loop, we get the length of the string. In order to understand this, you should be familiar with the concept of the loop, and quite familiar with the concept of strings.<\/p>\n<h2 style=\"text-align: center;\" align=\"JUSTIFY\">C program to Find the Length of String without Using strlen Function<\/h2>\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"youtube-embed\" data-video_id=\"f1aEpFfYOS4\"><iframe loading=\"lazy\" title=\"C program to Find the Length of String without Using strlen Function\" width=\"696\" height=\"392\" src=\"https:\/\/www.youtube.com\/embed\/f1aEpFfYOS4?feature=oembed&#038;enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>\u00a0I hope you find this video \u2018C program to Find the Length of String without Using strlen Function\u2019 helpful for you\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In C language, if we want to get the length of the string, we usually make use of the strlen function. But in this video, we are going to learn about how can we calculate the length of a string, without using the strlen function. For this, we are just going to need to loop [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4425,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[29,71],"class_list":{"0":"post-4422","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-c-program","8":"tag-c-program","9":"tag-c-program-to-find-the-length-of-string-without-using-strlen-function"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=4422"}],"version-history":[{"count":1,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4422\/revisions"}],"predecessor-version":[{"id":4426,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4422\/revisions\/4426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media\/4425"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=4422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=4422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=4422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}