{"id":4333,"date":"2024-06-17T09:26:10","date_gmt":"2024-06-17T03:56:10","guid":{"rendered":"https:\/\/cthecosmos.com\/?p=4333"},"modified":"2024-06-17T09:26:10","modified_gmt":"2024-06-17T03:56:10","slug":"%f0%9d%91%be%f0%9d%92%89%f0%9d%92%9a-%f0%9d%92%85%f0%9d%92%90-%f0%9d%92%82%f0%9d%92%93%f0%9d%92%93%f0%9d%92%82%f0%9d%92%9a-%f0%9d%92%8a%f0%9d%92%8f%f0%9d%92%85%f0%9d%92%86%f0%9d%92%99-%f0%9d%92%94","status":"publish","type":"post","link":"https:\/\/cthecosmos.com\/?p=4333","title":{"rendered":"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce?"},"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\">For many newcomers to programming, one of the initial points of confusion is the zero-based indexing system commonly used in languages like C, C++, Java, and Python. Why do arrays start at index 0 and not 1? Isn&#8217;t counting from 1 more intuitive?<br><br>Languages like C treat arrays as pointers pointing to the first element&#8217;s memory location. When you wish to access an element, the compiler calculates its address using a straightforward formula:<br><br><strong>Address of a[i] = Base address of a + i \u00d7 Size of data type<\/strong><br><br>Now, if arrays were 1-indexed, the formula would have to subtract one unit of the data type&#8217;s size from the computed address, leading to an additional subtraction operation:<br><strong><br>Address of a[i] = Base address of a + (i-1) \u00d7 Size of data type<\/strong><br><br>In systems where performance is crucial, this unnecessary arithmetic can lead to inefficiencies.<br><br>Many algorithms and mathematical formulas start their series with n=0. Zero-based indexing allows direct implementation of these algorithms without any offsets. For example, the Fourier Transform and other mathematical operations have natural base cases that start with 0.<br><br>At its core, computer logic operates in binary. The smallest whole number in this system is 0. When manipulating data at a bitwise level, operations become more straightforward when the index aligns with the binary system&#8217;s base number.<br><br>The adoption of zero-based indexing in early, influential languages like C set a precedent. As these languages influenced subsequent languages, the convention naturally persisted.<br><br>Imagine you&#8217;re measuring distances from your home. The distance from your home to itself isn&#8217;t 1 mile or 1 kilometer; it&#8217;s 0 because you&#8217;re already there. Similarly, the first element of an array is at &#8216;0 distance&#8217; from the start, hence index 0.<br><br>This doesn&#8217;t mean one method is universally better; in fact, languages like Fortran, MATLAB, and Lua use 1-based indexing. It all boils down to the design decisions made by the language&#8217;s creators, often influenced by the language&#8217;s intended use cases and the hardware it targets.<br><br><br>LinkedIn Post: <a href=\"https:\/\/www.linkedin.com\/posts\/t-yashwanth-naidu_earlycareer-embeddedsystems-learning-activity-7117866176570920960-Mp07\/?utm_source=share&amp;utm_medium=member_desktop\">https:\/\/www.linkedin.com\/posts\/t-yashwanth-naidu_earlycareer-embeddedsystems-learning-activity-7117866176570920960-Mp07\/?utm_source=share&amp;utm_medium=member_desktop<\/a><br><\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color has-medium-font-size wp-elements-2 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>Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.<\/p>\n<a href=\"https:\/\/cthecosmos.com\/?p=4333\" class=\"more-link\">Read More <span class=\"screen-reader-text\">\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce?<\/span><\/a>","protected":false},"author":120055267,"featured_media":4335,"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_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,952411],"tags":[584090,772321202,772321195,772321193,772321167],"class_list":["post-4333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-concepts-hub","category-c-programming","category-short-articles","tag-arrays","tag-c-concepts-hub","tag-c-programming","tag-embedded-systems","tag-programming-short-article","fallback-thumbnail"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.\" \/>\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=4333\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\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\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce? - Yashwanth Naidu Tikkisetty\" \/>\n\t\t<meta property=\"og:description\" content=\"Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/cthecosmos.com\/?p=4333\" \/>\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-06-17T03:56:10+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-06-17T03:56:10+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce? - Yashwanth Naidu Tikkisetty\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.\" \/>\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=4333#blogposting\",\"name\":\"\\ud835\\udc7e\\ud835\\udc89\\ud835\\udc9a \\ud835\\udc85\\ud835\\udc90 \\ud835\\udc82\\ud835\\udc93\\ud835\\udc93\\ud835\\udc82\\ud835\\udc9a \\ud835\\udc8a\\ud835\\udc8f\\ud835\\udc85\\ud835\\udc86\\ud835\\udc99 \\ud835\\udc94\\ud835\\udc95\\ud835\\udc82\\ud835\\udc93\\ud835\\udc95 \\ud835\\udc98\\ud835\\udc8a\\ud835\\udc95\\ud835\\udc89 \\ud835\\udfce? - Yashwanth Naidu Tikkisetty\",\"headline\":\"\\ud835\\udc7e\\ud835\\udc89\\ud835\\udc9a \\ud835\\udc85\\ud835\\udc90 \\ud835\\udc82\\ud835\\udc93\\ud835\\udc93\\ud835\\udc82\\ud835\\udc9a \\ud835\\udc8a\\ud835\\udc8f\\ud835\\udc85\\ud835\\udc86\\ud835\\udc99 \\ud835\\udc94\\ud835\\udc95\\ud835\\udc82\\ud835\\udc93\\ud835\\udc95 \\ud835\\udc98\\ud835\\udc8a\\ud835\\udc95\\ud835\\udc89 \\ud835\\udfce?\",\"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\\\/06\\\/pexels-photo-1629236.jpeg?fit=1880%2C1058&ssl=1\",\"width\":1880,\"height\":1058,\"caption\":\"Photo by Suzy Hazelwood on Pexels.com\"},\"datePublished\":\"2024-06-17T09:26:10+05:30\",\"dateModified\":\"2024-06-17T09:26:10+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333#webpage\"},\"articleSection\":\"C Concepts Hub, c programming, SHORT ARTICLES, Arrays, C Concepts Hub, c programming, Embedded Systems, Programming SHORT ARTICLE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333#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=36985#listItem\",\"name\":\"c programming\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=36985#listItem\",\"position\":2,\"name\":\"c programming\",\"item\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=36985\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333#listItem\",\"name\":\"\\ud835\\udc7e\\ud835\\udc89\\ud835\\udc9a \\ud835\\udc85\\ud835\\udc90 \\ud835\\udc82\\ud835\\udc93\\ud835\\udc93\\ud835\\udc82\\ud835\\udc9a \\ud835\\udc8a\\ud835\\udc8f\\ud835\\udc85\\ud835\\udc86\\ud835\\udc99 \\ud835\\udc94\\ud835\\udc95\\ud835\\udc82\\ud835\\udc93\\ud835\\udc95 \\ud835\\udc98\\ud835\\udc8a\\ud835\\udc95\\ud835\\udc89 \\ud835\\udfce?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333#listItem\",\"position\":3,\"name\":\"\\ud835\\udc7e\\ud835\\udc89\\ud835\\udc9a \\ud835\\udc85\\ud835\\udc90 \\ud835\\udc82\\ud835\\udc93\\ud835\\udc93\\ud835\\udc82\\ud835\\udc9a \\ud835\\udc8a\\ud835\\udc8f\\ud835\\udc85\\ud835\\udc86\\ud835\\udc99 \\ud835\\udc94\\ud835\\udc95\\ud835\\udc82\\ud835\\udc93\\ud835\\udc95 \\ud835\\udc98\\ud835\\udc8a\\ud835\\udc95\\ud835\\udc89 \\ud835\\udfce?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?cat=36985#listItem\",\"name\":\"c programming\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#person\",\"name\":\"Yashwanth Naidu Tikkisetty\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333#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=4333#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=4333#webpage\",\"url\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333\",\"name\":\"\\ud835\\udc7e\\ud835\\udc89\\ud835\\udc9a \\ud835\\udc85\\ud835\\udc90 \\ud835\\udc82\\ud835\\udc93\\ud835\\udc93\\ud835\\udc82\\ud835\\udc9a \\ud835\\udc8a\\ud835\\udc8f\\ud835\\udc85\\ud835\\udc86\\ud835\\udc99 \\ud835\\udc94\\ud835\\udc95\\ud835\\udc82\\ud835\\udc93\\ud835\\udc95 \\ud835\\udc98\\ud835\\udc8a\\ud835\\udc95\\ud835\\udc89 \\ud835\\udfce? - Yashwanth Naidu Tikkisetty\",\"description\":\"Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333#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\\\/06\\\/pexels-photo-1629236.jpeg?fit=1880%2C1058&ssl=1\",\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333\\\/#mainImage\",\"width\":1880,\"height\":1058,\"caption\":\"Photo by Suzy Hazelwood on Pexels.com\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cthecosmos.com\\\/?p=4333#mainImage\"},\"datePublished\":\"2024-06-17T09:26:10+05:30\",\"dateModified\":\"2024-06-17T09:26:10+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\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce? - Yashwanth Naidu Tikkisetty","description":"Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.","canonical_url":"https:\/\/cthecosmos.com\/?p=4333","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/cthecosmos.com\/?p=4333#blogposting","name":"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce? - Yashwanth Naidu Tikkisetty","headline":"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce?","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\/06\/pexels-photo-1629236.jpeg?fit=1880%2C1058&ssl=1","width":1880,"height":1058,"caption":"Photo by Suzy Hazelwood on Pexels.com"},"datePublished":"2024-06-17T09:26:10+05:30","dateModified":"2024-06-17T09:26:10+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/cthecosmos.com\/?p=4333#webpage"},"isPartOf":{"@id":"https:\/\/cthecosmos.com\/?p=4333#webpage"},"articleSection":"C Concepts Hub, c programming, SHORT ARTICLES, Arrays, C Concepts Hub, c programming, Embedded Systems, Programming SHORT ARTICLE"},{"@type":"BreadcrumbList","@id":"https:\/\/cthecosmos.com\/?p=4333#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=36985#listItem","name":"c programming"}},{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=36985#listItem","position":2,"name":"c programming","item":"https:\/\/cthecosmos.com\/?cat=36985","nextItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?p=4333#listItem","name":"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?p=4333#listItem","position":3,"name":"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce?","previousItem":{"@type":"ListItem","@id":"https:\/\/cthecosmos.com\/?cat=36985#listItem","name":"c programming"}}]},{"@type":"Person","@id":"https:\/\/cthecosmos.com\/#person","name":"Yashwanth Naidu Tikkisetty","image":{"@type":"ImageObject","@id":"https:\/\/cthecosmos.com\/?p=4333#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=4333#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=4333#webpage","url":"https:\/\/cthecosmos.com\/?p=4333","name":"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce? - Yashwanth Naidu Tikkisetty","description":"Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/cthecosmos.com\/#website"},"breadcrumb":{"@id":"https:\/\/cthecosmos.com\/?p=4333#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\/06\/pexels-photo-1629236.jpeg?fit=1880%2C1058&ssl=1","@id":"https:\/\/cthecosmos.com\/?p=4333\/#mainImage","width":1880,"height":1058,"caption":"Photo by Suzy Hazelwood on Pexels.com"},"primaryImageOfPage":{"@id":"https:\/\/cthecosmos.com\/?p=4333#mainImage"},"datePublished":"2024-06-17T09:26:10+05:30","dateModified":"2024-06-17T09:26:10+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\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce? - Yashwanth Naidu Tikkisetty","og:description":"Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.","og:url":"https:\/\/cthecosmos.com\/?p=4333","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-06-17T03:56:10+00:00","article:modified_time":"2024-06-17T03:56:10+00:00","twitter:card":"summary_large_image","twitter:title":"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce? - Yashwanth Naidu Tikkisetty","twitter:description":"Many programming languages, including C, C++, Java, and Python, use zero-based indexing for arrays. This allows for more efficient memory management and aligns with binary logic. Influential languages like C set this precedent, and it facilitates the implementation of certain algorithms and mathematical formulas. However, languages like Fortran, MATLAB, and Lua use one-based indexing as an alternative.","twitter:image":"https:\/\/cthecosmos.com\/wp-content\/uploads\/2018\/08\/logo1.png"},"aioseo_meta_data":{"post_id":"4333","title":null,"description":null,"keywords":null,"keyphrases":{"focus":[],"additional":[]},"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":"2026-08-04 05:46:02","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\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cthecosmos.com\/?cat=36985\" title=\"c programming\">c programming<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/cthecosmos.com"},{"label":"c programming","link":"https:\/\/cthecosmos.com\/?cat=36985"},{"label":"\ud835\udc7e\ud835\udc89\ud835\udc9a \ud835\udc85\ud835\udc90 \ud835\udc82\ud835\udc93\ud835\udc93\ud835\udc82\ud835\udc9a \ud835\udc8a\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc99 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc93\ud835\udc95 \ud835\udc98\ud835\udc8a\ud835\udc95\ud835\udc89 \ud835\udfce?","link":"https:\/\/cthecosmos.com\/?p=4333"}],"jetpack_publicize_connections":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8CiEf-17T","jetpack-related-posts":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/cthecosmos.com\/wp-content\/uploads\/2024\/06\/pexels-photo-1629236.jpeg?fit=1880%2C1058&ssl=1","_links":{"self":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4333","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=4333"}],"version-history":[{"count":3,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4333\/revisions"}],"predecessor-version":[{"id":4337,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/posts\/4333\/revisions\/4337"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=\/wp\/v2\/media\/4335"}],"wp:attachment":[{"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cthecosmos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}