{"id":4279,"date":"2024-04-27T12:39:48","date_gmt":"2024-04-27T07:09:48","guid":{"rendered":"https:\/\/cthecosmos.com\/?p=4279"},"modified":"2024-04-27T12:39:48","modified_gmt":"2024-04-27T07:09:48","slug":"%f0%9d%91%bb%f0%9d%92%89%f0%9d%92%86-%f0%9d%91%ad%f0%9d%92%90%f0%9d%92%93%f0%9d%92%83%f0%9d%92%8a%f0%9d%92%85%f0%9d%92%85%f0%9d%92%86%f0%9d%92%8f-%f0%9d%91%aa%f0%9d%92%90%f0%9d%92%8f%f0%9d%92%95","status":"publish","type":"post","link":"https:\/\/cthecosmos.com\/?p=4279","title":{"rendered":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90"},"content":{"rendered":"\n<p class=\"has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-1 wp-block-paragraph\" style=\"font-size:17px;line-height:1.8\">The `goto` statement has been a topic of debate among developers for decades. While it provides a straightforward way to jump from one point to another in code, the potential pitfalls associated with its use can be severe. Let\u2019s explore this topic in-depth<br><br><strong>\ud835\udc7e\ud835\udc89\ud835\udc82\ud835\udc95 \ud835\udc6c\ud835\udc99\ud835\udc82\ud835\udc84\ud835\udc95\ud835\udc8d\ud835\udc9a \ud835\udc8a\ud835\udc94 \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90?<\/strong><br>`goto` is a control statement that instructs the program to jump to a specific point in the code, bypassing any intermediate steps. While it sounds simple, its consequences are profound.<br><br><strong>\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc77\ud835\udc8a\ud835\udc95\ud835\udc87\ud835\udc82\ud835\udc8d\ud835\udc8d\ud835\udc94 \ud835\udc90\ud835\udc87 \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90<\/strong><br><br><strong><em>1.Breaking the Structure:<\/em><\/strong><br>Programming paradigms have evolved towards structured programming. This is a design that encourages linear progression with loops and conditionals. `goto` disrupts this flow, making code harder to understand and maintain.<br><br><strong><em>2. The Spaghetti Code Phenomenon:<\/em><\/strong><br>Goto can lead to code where the flow of execution jumps around, much like spaghetti strands intertwining. This makes debugging a nightmare as tracing code becomes a maze-like endeavor.<br><br><strong><em>3.Optimization Challenges:<\/em><\/strong><br>Modern compilers optimize code for performance. When `goto` is used excessively, it becomes challenging for compilers to predict the flow, leading to sub-optimal execution.<br><br><strong><em>4. Error-Prone<\/em><\/strong>: With goto, it&#8217;s easy to create unintended infinite loops or skip essential parts of the code accidentally. This can lead to unexpected behaviors and bugs.<br><br>To truly understand the impact of `goto`, we can inspect the assembly code generated from a C program. The image on this post consists of assembly code generated for with goto and without goto statement for a factorial problem. To summarize the image:<br><br>With Goto:<br><br>.L4:<br>\/\/ Some operations<br>Jump directly back to .L4<br><br>Without Goto:<br>.L4:<br>\/\/ Some operations<br>.L6:<br>\/\/ Additional operations or a structured loop back to .L4<\/p>\n\n\n\n<figure class=\"wp-block-image alignfull size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"463\" data-attachment-id=\"4282\" data-permalink=\"https:\/\/cthecosmos.com\/?attachment_id=4282\" data-orig-file=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/pongoto.png?fit=4414%2C2044&amp;ssl=1\" data-orig-size=\"4414,2044\" data-comments-opened=\"1\" data-image-title=\"pongoto\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/pongoto.png?fit=1000%2C463&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/pongoto.png?resize=1000%2C463&#038;ssl=1\" alt=\"\" class=\"wp-image-4282\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-2 wp-block-paragraph\" style=\"font-size:17px;line-height:1.8\"><br>The `goto` version creates an endless loop, continually repeating the operations in `.L4`. In contrast, the structured version can either move forward to `.L6` or loop back to `.L4` based on a clear condition. This structured approach provides context, making the code&#8217;s intention clear.<br><br>There was this letter Published by Edgar Dijkstra &#8221; <strong>Go To statement Considered Harmful<\/strong>.&#8221;<br><br>The letter had a profound impact on the software development community. It led to a shift towards structured programming, where control structures like loops and conditionals are preferred over goto. As a result, many modern programming languages either restrict the use of goto or omit it entirely.<br><br>The Letter: <a href=\"https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf\">https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-black-color has-white-background-color has-text-color has-background has-link-color wp-elements-3 wp-block-paragraph\" style=\"font-size:17px\">LinkedIn post: <a href=\"https:\/\/www.linkedin.com\/posts\/t-yashwanth-naidu_earlycareerembedded-earlycareer-embeddedsystems-activity-7113027707260567552-4LMb\/?utm_source=share&amp;utm_medium=member_desktop\">https:\/\/www.linkedin.com\/posts\/t-yashwanth-naidu_earlycareerembedded-earlycareer-embeddedsystems-activity-7113027707260567552-4LMb\/?utm_source=share&amp;utm_medium=member_desktop<\/a><\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color has-medium-font-size wp-elements-4 wp-block-paragraph\" style=\"background:linear-gradient(135deg,rgb(35,23,11) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)\">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><strong>An Article by: <\/strong>Yashwanth Naidu Tikkisetty<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8216;goto&#8217; statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from &#8216;goto&#8217; in favor of control structures. [Read more](<a href=\"https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf\" rel=\"nofollow\">https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf<\/a>)<\/p>\n<a href=\"https:\/\/cthecosmos.com\/?p=4279\" class=\"more-link\">Read More <span class=\"screen-reader-text\">\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90<\/span><\/a>","protected":false},"author":120055267,"featured_media":4280,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[769112296,36985,28627,30181,952411],"tags":[772321195,772321193,36931137,1354040],"class_list":["post-4279","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-concepts-hub","category-c-programming","category-embedded","category-embedded-systems","category-short-articles","tag-c-programming","tag-embedded-systems","tag-goto-statement","tag-short-article","fallback-thumbnail"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"The &#039;goto&#039; statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from &#039;goto&#039; in favor of control structures. [Read more](https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf)\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yashwanth Naidu Tikkisetty\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/cthecosmos.com\/?p=4279\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Yashwanth Naidu Tikkisetty - Embedded Systems | Space Blogger\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90 - Yashwanth Naidu Tikkisetty\" \/>\n\t\t<meta property=\"og:description\" content=\"The &#039;goto&#039; statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from &#039;goto&#039; in favor of control structures. [Read more](https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf)\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/cthecosmos.com\/?p=4279\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1200\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-04-27T07:09:48+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-04-27T07:09:48+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90 - Yashwanth Naidu Tikkisetty\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The &#039;goto&#039; statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from &#039;goto&#039; in favor of control structures. [Read more](https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf)\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.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:\\\/\\\/cthecosmos.com\\\/?p=4279#blogposting\",\"name\":\"\\ud835\\udc7b\\ud835\\udc89\\ud835\\udc86 \\ud835\\udc6d\\ud835\\udc90\\ud835\\udc93\\ud835\\udc83\\ud835\\udc8a\\ud835\\udc85\\ud835\\udc85\\ud835\\udc86\\ud835\\udc8f \\ud835\\udc6a\\ud835\\udc90\\ud835\\udc8f\\ud835\\udc95\\ud835\\udc93\\ud835\\udc90\\ud835\\udc8d \\ud835\\udc7a\\ud835\\udc95\\ud835\\udc82\\ud835\\udc95\\ud835\\udc86\\ud835\\udc8e\\ud835\\udc86\\ud835\\udc8f\\ud835\\udc95: \\ud835\\udc6e\\ud835\\udc90\\ud835\\udc95\\ud835\\udc90 - Yashwanth Naidu Tikkisetty\",\"headline\":\"\\ud835\\udc7b\\ud835\\udc89\\ud835\\udc86 \\ud835\\udc6d\\ud835\\udc90\\ud835\\udc93\\ud835\\udc83\\ud835\\udc8a\\ud835\\udc85\\ud835\\udc85\\ud835\\udc86\\ud835\\udc8f \\ud835\\udc6a\\ud835\\udc90\\ud835\\udc8f\\ud835\\udc95\\ud835\\udc93\\ud835\\udc90\\ud835\\udc8d \\ud835\\udc7a\\ud835\\udc95\\ud835\\udc82\\ud835\\udc95\\ud835\\udc86\\ud835\\udc8e\\ud835\\udc86\\ud835\\udc8f\\ud835\\udc95: \\ud835\\udc6e\\ud835\\udc90\\ud835\\udc95\\ud835\\udc90\",\"author\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/cthecosmos.com\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/chjpdmf0zs9sci9pbwfnzxmvd2vic2l0zs8ymdiylta1l25zmtq0mdktaw1hz2uta3d2d283nhkuanbn.webp?fit=1024%2C683&ssl=1\",\"width\":1024,\"height\":683},\"datePublished\":\"2024-04-27T12:39:48+05:30\",\"dateModified\":\"2024-04-27T12:39:48+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#webpage\"},\"articleSection\":\"C Concepts Hub, c programming, Embedded, Embedded Systems, SHORT ARTICLES, c programming, Embedded Systems, GOTO statement, SHORT ARTICLE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cthecosmos.com\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=28627#listItem\",\"name\":\"Embedded\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=28627#listItem\",\"position\":2,\"name\":\"Embedded\",\"item\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=28627\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#listItem\",\"name\":\"\\ud835\\udc7b\\ud835\\udc89\\ud835\\udc86 \\ud835\\udc6d\\ud835\\udc90\\ud835\\udc93\\ud835\\udc83\\ud835\\udc8a\\ud835\\udc85\\ud835\\udc85\\ud835\\udc86\\ud835\\udc8f \\ud835\\udc6a\\ud835\\udc90\\ud835\\udc8f\\ud835\\udc95\\ud835\\udc93\\ud835\\udc90\\ud835\\udc8d \\ud835\\udc7a\\ud835\\udc95\\ud835\\udc82\\ud835\\udc95\\ud835\\udc86\\ud835\\udc8e\\ud835\\udc86\\ud835\\udc8f\\ud835\\udc95: \\ud835\\udc6e\\ud835\\udc90\\ud835\\udc95\\ud835\\udc90\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#listItem\",\"position\":3,\"name\":\"\\ud835\\udc7b\\ud835\\udc89\\ud835\\udc86 \\ud835\\udc6d\\ud835\\udc90\\ud835\\udc93\\ud835\\udc83\\ud835\\udc8a\\ud835\\udc85\\ud835\\udc85\\ud835\\udc86\\ud835\\udc8f \\ud835\\udc6a\\ud835\\udc90\\ud835\\udc8f\\ud835\\udc95\\ud835\\udc93\\ud835\\udc90\\ud835\\udc8d \\ud835\\udc7a\\ud835\\udc95\\ud835\\udc82\\ud835\\udc95\\ud835\\udc86\\ud835\\udc8e\\ud835\\udc86\\ud835\\udc8f\\ud835\\udc95: \\ud835\\udc6e\\ud835\\udc90\\ud835\\udc95\\ud835\\udc90\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=28627#listItem\",\"name\":\"Embedded\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Yashwanth Naidu Tikkisetty\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g\",\"width\":96,\"height\":96,\"caption\":\"Yashwanth Naidu Tikkisetty\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#webpage\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279\",\"name\":\"\\ud835\\udc7b\\ud835\\udc89\\ud835\\udc86 \\ud835\\udc6d\\ud835\\udc90\\ud835\\udc93\\ud835\\udc83\\ud835\\udc8a\\ud835\\udc85\\ud835\\udc85\\ud835\\udc86\\ud835\\udc8f \\ud835\\udc6a\\ud835\\udc90\\ud835\\udc8f\\ud835\\udc95\\ud835\\udc93\\ud835\\udc90\\ud835\\udc8d \\ud835\\udc7a\\ud835\\udc95\\ud835\\udc82\\ud835\\udc95\\ud835\\udc86\\ud835\\udc8e\\ud835\\udc86\\ud835\\udc8f\\ud835\\udc95: \\ud835\\udc6e\\ud835\\udc90\\ud835\\udc95\\ud835\\udc90 - Yashwanth Naidu Tikkisetty\",\"description\":\"The 'goto' statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from 'goto' in favor of control structures. [Read more](https:\\\/\\\/homepages.cwi.nl\\\/~storm\\\/teaching\\\/reader\\\/Dijkstra68.pdf)\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?author=120055267#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/cthecosmos.com\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/chjpdmf0zs9sci9pbwfnzxmvd2vic2l0zs8ymdiylta1l25zmtq0mdktaw1hz2uta3d2d283nhkuanbn.webp?fit=1024%2C683&ssl=1\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279\\\/#mainImage\",\"width\":1024,\"height\":683},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4279#mainImage\"},\"datePublished\":\"2024-04-27T12:39:48+05:30\",\"dateModified\":\"2024-04-27T12:39:48+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#website\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"description\":\"Embedded Systems | Space Blogger\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90 - Yashwanth Naidu Tikkisetty","description":"The 'goto' statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from 'goto' in favor of control structures. [Read more](https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf)","canonical_url":"https:\/\/cthecosmos.com\/?p=4279","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/cthecosmos.com\/?p=4279#blogposting","name":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90 - Yashwanth Naidu Tikkisetty","headline":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90","author":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"publisher":{"@id":"https:\/\/cthecosmos.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/chjpdmf0zs9sci9pbwfnzxmvd2vic2l0zs8ymdiylta1l25zmtq0mdktaw1hz2uta3d2d283nhkuanbn.webp?fit=1024%2C683&ssl=1","width":1024,"height":683},"datePublished":"2024-04-27T12:39:48+05:30","dateModified":"2024-04-27T12:39:48+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/cthecosmos.com\/?p=4279#webpage"},"isPartOf":{"@id":"https:\/\/cthecosmos.com\/?p=4279#webpage"},"articleSection":"C Concepts Hub, c programming, Embedded, Embedded Systems, SHORT ARTICLES, c programming, Embedded Systems, GOTO statement, SHORT ARTICLE"},{"@type":"BreadcrumbList","@id":"https:\/\/cthecosmos.com\/?p=4279#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/#listItem","position":1,"name":"Home","item":"https:\/\/cthecosmos.com\/","nextItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=28627#listItem","name":"Embedded"}},{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=28627#listItem","position":2,"name":"Embedded","item":"https:\/\/cthecosmos.com\/?cat=28627","nextItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?p=4279#listItem","name":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90"},"previousItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?p=4279#listItem","position":3,"name":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90","previousItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=28627#listItem","name":"Embedded"}}]},{"@type":"Person","@id":"https:\/\/cthecosmos.com\/#person","name":"Yashwanth Naidu Tikkisetty","image":{"@type":"ImageObject","@id":"https:\/\/cthecosmos.com\/?p=4279#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Yashwanth Naidu Tikkisetty"}},{"@type":"Person","@id":"https:\/\/cthecosmos.com\/?author=120055267#author","url":"https:\/\/cthecosmos.com\/?author=120055267","name":"Yashwanth Naidu Tikkisetty","image":{"@type":"ImageObject","@id":"https:\/\/cthecosmos.com\/?p=4279#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a02d9f38e4c924587b544c74f6d5de0c8469b6a5c684622f1aa4ea2ba65b17d8?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Yashwanth Naidu Tikkisetty"}},{"@type":"WebPage","@id":"https:\/\/cthecosmos.com\/?p=4279#webpage","url":"https:\/\/cthecosmos.com\/?p=4279","name":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90 - Yashwanth Naidu Tikkisetty","description":"The 'goto' statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from 'goto' in favor of control structures. [Read more](https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf)","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/cthecosmos.com\/#website"},"breadcrumb":{"@id":"https:\/\/cthecosmos.com\/?p=4279#breadcrumblist"},"author":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"creator":{"@id":"https:\/\/cthecosmos.com\/?author=120055267#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/chjpdmf0zs9sci9pbwfnzxmvd2vic2l0zs8ymdiylta1l25zmtq0mdktaw1hz2uta3d2d283nhkuanbn.webp?fit=1024%2C683&ssl=1","@id":"https:\/\/cthecosmos.com\/?p=4279\/#mainImage","width":1024,"height":683},"primaryImageOfPage":{"@id":"https:\/\/cthecosmos.com\/?p=4279#mainImage"},"datePublished":"2024-04-27T12:39:48+05:30","dateModified":"2024-04-27T12:39:48+05:30"},{"@type":"WebSite","@id":"https:\/\/cthecosmos.com\/#website","url":"https:\/\/cthecosmos.com\/","name":"Yashwanth Naidu Tikkisetty","description":"Embedded Systems | Space Blogger","inLanguage":"en-US","publisher":{"@id":"https:\/\/cthecosmos.com\/#person"}}]},"og:locale":"en_US","og:site_name":"Yashwanth Naidu Tikkisetty - Embedded Systems | Space Blogger","og:type":"article","og:title":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90 - Yashwanth Naidu Tikkisetty","og:description":"The 'goto' statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from 'goto' in favor of control structures. [Read more](https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf)","og:url":"https:\/\/cthecosmos.com\/?p=4279","og:image":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png","og:image:secure_url":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png","og:image:width":1200,"og:image:height":1200,"article:published_time":"2024-04-27T07:09:48+00:00","article:modified_time":"2024-04-27T07:09:48+00:00","twitter:card":"summary_large_image","twitter:title":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90 - Yashwanth Naidu Tikkisetty","twitter:description":"The 'goto' statement in programming has sparked long-standing debate due to its ability to disrupt code structure. It can lead to spaghetti code, hinder optimization, and cause errors. This has prompted a shift toward structured programming. A letter by Edgar Dijkstra further solidified the move away from 'goto' in favor of control structures. [Read more](https:\/\/homepages.cwi.nl\/~storm\/teaching\/reader\/Dijkstra68.pdf)","twitter:image":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png"},"aioseo_meta_data":{"post_id":"4279","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,"ai":null,"created":"2025-08-31 20:22:35","updated":"2025-08-31 20:22:35","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cthecosmos.com\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cthecosmos.com\/?cat=28627\" title=\"Embedded\">Embedded<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/cthecosmos.com\/"},{"label":"Embedded","link":"https:\/\/cthecosmos.com\/?cat=28627"},{"label":"\ud835\udc7b\ud835\udc89\ud835\udc86 \ud835\udc6d\ud835\udc90\ud835\udc93\ud835\udc83\ud835\udc8a\ud835\udc85\ud835\udc85\ud835\udc86\ud835\udc8f \ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc93\ud835\udc90\ud835\udc8d \ud835\udc7a\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86\ud835\udc8e\ud835\udc86\ud835\udc8f\ud835\udc95: \ud835\udc6e\ud835\udc90\ud835\udc95\ud835\udc90","link":"https:\/\/cthecosmos.com\/?p=4279"}],"jetpack_publicize_connections":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8CiEf-171","jetpack-related-posts":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/04\/chjpdmf0zs9sci9pbwfnzxmvd2vic2l0zs8ymdiylta1l25zmtq0mdktaw1hz2uta3d2d283nhkuanbn.webp?fit=1024%2C683&ssl=1","_links":{"self":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/users\/120055267"}],"replies":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4279"}],"version-history":[{"count":6,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4279\/revisions"}],"predecessor-version":[{"id":4287,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4279\/revisions\/4287"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/media\/4280"}],"wp:attachment":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}