<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>8051 microcontroller tutorial</title><description>This blog shows you how to write embedded C programs to 8051 family microcontrollers using KEIL compiler. It also discusses C and C++ projects and trending Arduino Board.</description><managingEditor>noreply@blogger.com (belgaumboy)</managingEditor><pubDate>Mon, 11 May 2026 17:51:59 +0530</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">488</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://8051microcontrollertutorial.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>This blog shows you how to write embedded C programs to 8051 family microcontrollers using KEIL compiler. It also discusses C and C++ projects and trending Arduino Board.</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>The Real-World Magic of AI: A Student’s Guide to How Technology Transforms Industries</title><link>http://8051microcontrollertutorial.blogspot.com/2026/05/8051MT08052026AIApplicationsOfAI.html</link><category>AI</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Mon, 11 May 2026 17:24:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-2393009071213540461</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj65a3iYdq3VloGPJa-PFBSyhgmT26bRGFmLRk7ASZ5bs7Tnq0DWLBkt3CSYRu9z-Oer9JFFj4K7mKDRrIdakybY7ZzOVlgttlhBLB8p-0baaqOULeTdKUEYFFmMFTWqwB3fj1oD7ojME9yyLvzpbHTmLlQsVfHlnRYv3VZTKvCQiJnoi9coPXUxrNlfUCL/s1408/8051MT_08052026_AI_ApplicationsOfAI_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The Real-World Magic of AI: A Student’s Guide to How Technology Transforms Industries" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj65a3iYdq3VloGPJa-PFBSyhgmT26bRGFmLRk7ASZ5bs7Tnq0DWLBkt3CSYRu9z-Oer9JFFj4K7mKDRrIdakybY7ZzOVlgttlhBLB8p-0baaqOULeTdKUEYFFmMFTWqwB3fj1oD7ojME9yyLvzpbHTmLlQsVfHlnRYv3VZTKvCQiJnoi9coPXUxrNlfUCL/w320-h175/8051MT_08052026_AI_ApplicationsOfAI_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;Introduction: From Buzzword to Business Solution&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;In the current landscape of technological change, Artificial Intelligence (AI) has moved far beyond being a mere "buzzword" or a novelty for the tech-savvy. For the modern student and future professional, it is essential to view AI as a critical toolset designed to solve tangible, high-stakes business challenges. Industries do not adopt AI for the sake of "innovation" alone; they use it because it addresses the most difficult hurdles in the modern economy, such as acute talent shortages in manufacturing and the need for extreme precision in healthcare.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;"Every business entity prioritizes drivers contributing higher value to the business outcomes for optimizing operations and sustaining competition."&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Understanding this shift—from looking at AI as a gadget to seeing it as a mechanism for optimizing operations—is the first step in mastering the digital economy. As we explore the landscape of modern industry, we see this most clearly in sectors where there is no room for error: the high-velocity worlds of heavy industry and aerospace.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;High-Stakes Innovation: Aerospace, Defense, and Automotive&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;In the mechanical sectors, the objectives are clear: ensure safety, maintain quality, and maximize production volume. AI serves as a "Power-Up," allowing engineers to simulate environments and predict mechanical failures long before a vehicle ever touches the road or a satellite leaves the atmosphere.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Industry Sector&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The AI Power-Up&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Defence &amp;amp; Aerospace&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Manufacturers use AI to simulate and analyze products before they are built to meet stringent safety standards. Crucially, AI ingests vast image data to enable the autonomous decision-making required for systems like drones.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Automotive&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;To increase production volume and overall equipment effectiveness, AI identifies accurate patterns in operational data. This allows for optimized manufacturing processes and the processing of enormous data volumes within R&amp;amp;D functions.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align: justify;"&gt;While these industries use AI to perfect the machines we drive and fly, the technology is also being applied to the more human-centric challenges found in our classrooms and clinics.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Human Element: AI in Education and Life Sciences&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;AI acts as a catalyst for personal growth and physical health by personalizing the way we learn and accelerating the way we heal.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Education&lt;/b&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Functional Goal:&lt;/b&gt; Scaling expertise and streamlining institutional entry.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;Instructors utilize AI to research emerging fields like data science and build advanced learning models.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The Accelerator Link:&lt;/b&gt; To drive this innovation, many universities now fund internal accelerators and R&amp;amp;D activities to encourage the development of new AI tools on campus.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;Administrators use AI to analyze the skills and qualifications of students and faculty during the onboarding process, ensuring a better fit for the academic community.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Life Sciences&lt;/b&gt;&lt;/div&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Functional Goal:&lt;/b&gt; Fulfilling market demand and advancing diagnostic precision.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;In the pharmaceutical sector, AI helps maximize manufacturing capacity to ensure companies can meet global market demand while speeding up R&amp;amp;D and regulatory compliance.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Bio-imaging Breakthrough:&lt;/b&gt; AI enables non-invasive bio-imaging techniques to identify specific diseases. By processing massive volumes of patient data, AI can predict and diagnose health ailments far more rapidly than traditional methods.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="text-align: justify;"&gt;As we improve individual well-being through better health and education, we must also look at the massive digital systems that keep society stable: our financial assets and our public infrastructure.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Digital Guardians: Financial Services and Government&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;For society to function, our money must be secure and our cities must be navigable. AI acts as a "Digital Guardian," using pattern recognition to provide the security and efficiency required for modern life.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Financial Services: Securing the Economy&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Problem:&lt;/b&gt; Fraudulent accounts and deceptive payment transactions that threaten data security and financial stability.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Solution:&lt;/b&gt; AI uses sophisticated pattern recognition to identify the authenticity—referred to as "genuity" in industry contexts—of transactions. This allows for real-time fraud prevention alongside more accurate financial forecasting.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Government: Maintaining the Public Trust&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Problem:&lt;/b&gt; Chronic road congestion and the unpredictable "downtime" of essential public infrastructure like bridges or power grids.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Solution:&lt;/b&gt; Regulatory bodies use AI for road traffic management to mitigate congestion and predictive maintenance to precisely forecast when infrastructure requires repair, ensuring public safety and resource optimization.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;These digital guardians provide the stability and efficiency necessary for our society to then focus on higher-level goals: environmental sustainability and the personalization of our daily lives.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Sustainability and Personalization: Energy and Media&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The energy we use and the media we consume represent the twin frontiers of AI utility—saving the planet through efficiency and enhancing the individual experience through curation.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Green Engine (Energy)&lt;/b&gt; For oil and gas companies, AI is a fundamental tool for sustainability. By applying process optimization and predictive maintenance, AI increases worker productivity and equipment efficiency, helping the sector meet ambitious environmental and sustainability goals.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Curated Experience (Media)&lt;/b&gt; In the entertainment world, AI shifts the focus to the individual. Through algorithmic curation and the analysis of customer data patterns, AI creates personalized content. This differentiation allows companies to improve the consumer experience by delivering exactly what the viewer wants.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;By examining these diverse applications, we can begin to see the "Big Picture" of how AI serves as a universal engine for industrial and social progress.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Summary Synthesis: The AI Utility Matrix&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The following matrix synthesizes how AI's core functions translate into real-world outcomes and what you, as a learner, should take away from these developments.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Functional Goal&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Real-World Example (Source Context)&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Learner's Insight&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Quality&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Simulating aircraft and space systems to ensure stringent safety.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;High-fidelity simulation is the future of "risk-free" innovation in high-stakes careers.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Productivity&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Minimizing workforce shortages and optimizing oil/gas operations.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Future professionals must learn to manage AI "collaborators" to bridge the talent gap in essential industries.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Safety&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Mitigating road traffic congestion and infrastructure downtime.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Understanding AI-driven predictive maintenance is essential for modern urban planning and logistics.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Predictive Diagnosis&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Identifying diseases via bio-imaging and large-scale patient data.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;AI does not replace experts; it provides them with the "pattern-sight" needed to solve problems at a superhuman scale.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Key Takeaways&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;AI is a Purpose-Built Tool:&lt;/b&gt; It is deployed to solve specific hurdles like talent shortages, safety regulations, and market demand.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Autonomy is Data-Driven:&lt;/b&gt; In sectors like defense, AI's ability to ingest images is what makes autonomous systems like drones possible.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The University Connection:&lt;/b&gt; Innovation isn't just happening in labs; university accelerators are the engines funding the next generation of AI tools.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Authenticity Matters:&lt;/b&gt; In finance, AI’s primary role is verifying the "genuity" (authenticity) of transactions to protect the global economy.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Final Thought:&lt;/b&gt; AI is not a trend to be watched from the sidelines; it is a diverse and powerful toolset that allows us to solve human and industrial problems at a scale never before possible. As you prepare for your career, view AI as your most versatile collaborator in turning massive amounts of data into meaningful, life-improving actions.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj65a3iYdq3VloGPJa-PFBSyhgmT26bRGFmLRk7ASZ5bs7Tnq0DWLBkt3CSYRu9z-Oer9JFFj4K7mKDRrIdakybY7ZzOVlgttlhBLB8p-0baaqOULeTdKUEYFFmMFTWqwB3fj1oD7ojME9yyLvzpbHTmLlQsVfHlnRYv3VZTKvCQiJnoi9coPXUxrNlfUCL/s72-w320-h175-c/8051MT_08052026_AI_ApplicationsOfAI_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Why Your Brain Still Wins: 5 Surprising Limits of Artificial Intelligence</title><link>http://8051microcontrollertutorial.blogspot.com/2026/05/8051MT08052026AILimitsOfAI.html</link><category>AI</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sun, 10 May 2026 17:20:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-6981922861404894731</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTtMnp9UMXVCCP_waDuUP5y_hpbI2QZks_4AHUpNvzHGm_qrVXnMPbUBd-BDd_t5oXJiquChABI1fI-nOXS88iuRtHJsF5hOO4oRG6QpAHG_JU5T36gSRhomHxzFamkz_HoG-DTNF6tCwxug8rzhG87F5X_qiQw0_AxE_ILt6ij39fqJyPiQoZn1ULt_ql/s1408/8051MT_08052026_AI_Limits%20of%20AI_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Why Your Brain Still Wins: 5 Surprising Limits of Artificial Intelligence" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTtMnp9UMXVCCP_waDuUP5y_hpbI2QZks_4AHUpNvzHGm_qrVXnMPbUBd-BDd_t5oXJiquChABI1fI-nOXS88iuRtHJsF5hOO4oRG6QpAHG_JU5T36gSRhomHxzFamkz_HoG-DTNF6tCwxug8rzhG87F5X_qiQw0_AxE_ILt6ij39fqJyPiQoZn1ULt_ql/w320-h175/8051MT_08052026_AI_Limits%20of%20AI_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3 style="text-align: justify;"&gt;Introduction: The Uncanny Valley of Intelligence&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;We are currently navigating the "Uncanny Valley" of the Silicon Age—a restless period where artificial intelligence has become proficient enough to mimic human output, yet remains fundamentally disconnected from human experience. This mimicry has fueled a pervasive anxiety that our professional and creative roles are nearing obsolescence. However, as a technology strategist, I view this not as a replacement, but as a clarification of what makes us unique. While AI can leverage massive datasets to simulate knowledge, it lacks the visceral, organic complexity of the human mind. It is, as the BerylSoft perspective suggests, the difference between an artificial flower and a real one: a manufactured likeness may capture the geometry of beauty, but it fails to capture the vitality of life.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 1: The Soul of the Flower (Aesthetics vs. Essence)&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;In the realm of high-impact insight, the provenance of an idea is as critical as the idea itself. AI excels at providing "pleasure to the eye"—it can execute tasks, generate reports, and facilitate logic with startling speed. Yet, because these outputs are synthesized via algorithms rather than distilled through lived experience, they often feel sterile. The "source" of intelligence dictates the quality of the connection.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;As the source context insightfully notes:&lt;/p&gt;&lt;p style="text-align: justify;"&gt;"Those artificial flowers may give pleasure to the eye, but they may lack the freshness and warmth of the real ones."&lt;/p&gt;&lt;p style="text-align: justify;"&gt;AI provides the architecture of intelligence, but humans provide the warmth. Without the human "source," the output remains a cold iteration—a functional replica that lacks the freshness of an original perspective.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 2: Generative vs. Truly Original Creativity&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Current AI models leverage sophisticated generative technologies, specifically Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs), to iterate on music, art, and text. However, we must distinguish between "Type 1" innovation—the creation of entirely new categories—and "Type 2" innovation, which is the optimization of existing patterns. AI is mathematically tethered to the latter. It "recreates" by scanning historical data and rearranging it.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;This reliance on existing datasets represents a hard ceiling for breakthrough innovation. Because AI cannot navigate outside its training parameters, it cannot perform the radical departure from patterns required for true invention. Human creativity is fueled by curiosity and an inspired imagination that seeks to transcend current circumstances. While AI optimizes the past, humans imagine the future.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 3: The "Untrained Data" Adaptability Gap&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;AI systems are notoriously "brittle" when forced to operate outside of structured environments. While they process vast datasets with a speed no human can match, their performance collapses the moment they encounter "edge cases"—situations or data points that were not included in their initial training. In these unplanned scenarios, AI cannot innovate; it can only fail according to its programming.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In contrast, human intelligence is defined by the capacity for discretion. When we encounter a situation for which no prior "data" exists, we do not freeze; we leverage intuition and a generalized understanding of the world to make a judgment call. This ability to navigate the unknown based on internal values and situational nuance—rather than just variables—remains the primary reason why human-in-the-loop oversight is a non-negotiable requirement in complex industries.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 4: Why AI Doesn't Get the Joke (The Nuance of Language)&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Natural Language Processing (NLP) allows AI to mimic the mechanics of communication, but mimicry is not understanding. For a technology strategist, communication is about influence and trust, both of which require an mastery of social awareness. AI frequently navigates right past the "true meaning" of a human perspective because it cannot grasp cultural context, sarcasm, or the subtle subtext of a conversation.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Social awareness acts as a barrier that AI has yet to cross. While a machine can parse the syntax of a sentence, it cannot feel the weight of the words. Without the ability to perceive the deep human perspective behind an interaction, AI remains a sophisticated mimic—an echo chamber of words without the social intelligence required to build genuine connection or navigate complex human dynamics.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 5: Efficiency is Not Empathy&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;In structured environments, AI's pattern recognition facilitates unparalleled efficiency. However, its "Emotional Quotient" (EQ) is fundamentally a data-matching exercise. When a healthcare AI "detects" distress, it is simply identifying a statistical correlation between a pixel pattern on a face or a frequency in a voice and a label in its database. It does not "know" sadness; it recognizes the data point of a "sad face."&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The critical distinction lies in the difference between detecting and identifying. Humans do more than detect; we identify and respond through shared experience. We add empathy and social awareness to our interactions because we understand the feeling behind the data. AI can process the symptoms of an emotion, but it cannot share the human experience of it. In any role requiring genuine care or emotional resonance, efficiency will never be a substitute for empathy.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Conclusion: The Future of Coexistence&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The frontier of the future is not a competition between man and machine, but a partnership of disparate strengths. AI will continue to dominate the landscape of speed, scale, and reasoning within structured parameters. Humans, however, will remain the masters of depth, intuition, and original thought. Because AI lacks general understanding and emotional depth, it remains a tool to be wielded rather than a replacement for the hand that holds it.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The strategic advantage of the future belongs to those who understand this divide. If AI handles the data, how will you use your unique human intuition to change the world?&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTtMnp9UMXVCCP_waDuUP5y_hpbI2QZks_4AHUpNvzHGm_qrVXnMPbUBd-BDd_t5oXJiquChABI1fI-nOXS88iuRtHJsF5hOO4oRG6QpAHG_JU5T36gSRhomHxzFamkz_HoG-DTNF6tCwxug8rzhG87F5X_qiQw0_AxE_ILt6ij39fqJyPiQoZn1ULt_ql/s72-w320-h175-c/8051MT_08052026_AI_Limits%20of%20AI_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Inside the "Digital Brain": A Student's Guide to Large Language Models</title><link>http://8051microcontrollertutorial.blogspot.com/2026/05/8051MT08052026AILLMs.html</link><category>AI</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sat, 9 May 2026 17:15:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-8914281262568692092</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiysQ9vbe_gpetwyes9LMlL1f14ru6zdtkqH6l781kFYypLFEjBtTtjVcRzR6oKGFt4RksoSNQtjm0ufPIU1FW_wPCDaBXvt_xrBZOD9TbvOryflL_2RiFAWAWiGmg-Z3_KK-AblXD1qtBHC0wrhzEjV_yZv0dgztzU3DFWoe7B7qdehSzWHggvgvIvY7Ul/s1408/8051MT_08052026_AI_LLMs_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Inside the &amp;quot;Digital Brain&amp;quot;: A Student's Guide to Large Language Models" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiysQ9vbe_gpetwyes9LMlL1f14ru6zdtkqH6l781kFYypLFEjBtTtjVcRzR6oKGFt4RksoSNQtjm0ufPIU1FW_wPCDaBXvt_xrBZOD9TbvOryflL_2RiFAWAWiGmg-Z3_KK-AblXD1qtBHC0wrhzEjV_yZv0dgztzU3DFWoe7B7qdehSzWHggvgvIvY7Ul/w320-h175/8051MT_08052026_AI_LLMs_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2&gt;Introduction: What is an LLM?&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Welcome to the world of Artificial Intelligence! If you have ever wondered how a computer can write a poem, generate a complex software script, or answer a nuanced question, you are witnessing the power of &lt;b&gt;Large Language Models (LLMs)&lt;/b&gt;. At their core, LLMs are pre-trained deep learning models built with an enormous amount of data. You can think of them as high-tech digital students that have "read" a significant portion of the internet to learn how humans communicate, analyze, and create.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;What makes these models truly "large" is a combination of two massive factors:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Size of Data:&lt;/b&gt; They are trained on millions to billions of web pages sourced from massive digital archives.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Number of Parameters:&lt;/b&gt; They feature a staggering internal structure, often comprising hundreds of billions of individual "building blocks" that allow the model to navigate complex information.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;While their size is impressive, it is the specialized underlying structure that allows these models to process such a vast amount of data and turn it into coherent thought.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;The Architecture: Building the Digital Brain&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;To understand how an LLM works, we must look at its specific architecture. Modern LLMs are known as &lt;b&gt;Transformer LLMs&lt;/b&gt;. This specific design uses two primary neural networks—the &lt;b&gt;Encoder&lt;/b&gt; and the &lt;b&gt;Decoder&lt;/b&gt;—which function similarly to the human brain to process and transform data.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Component&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Primary Function&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Encoder&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Extracts the underlying intention of the sequential text and identifies relationships between different words or concepts.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Decoder&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Works in tandem with the encoder to facilitate understanding and produce the most appropriate output based on the input provided.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style="text-align: justify;"&gt;The Brain Analogy&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Just as your brain uses interconnected neurons to recognize patterns, these neural networks allow the LLM to mimic human cognition. This architecture is what enables the model to grasp the complexities of basic language, understand the rules of grammar, and recognize the intent behind a prompt. Within these encoders and decoders, a mechanism called &lt;b&gt;self-attention&lt;/b&gt; allows the model to weigh the importance of different parts of a sentence, much like how you might focus on specific keywords to understand a difficult instruction.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;However, having a sophisticated "digital brain" is only useful if the model knows how to focus on the most important parts of the information it receives during its growth.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;The Learning Process: How LLMs "Think" and Grow&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;The secret to an LLM’s intelligence lies in &lt;b&gt;unsupervised training&lt;/b&gt; (or self-learning). Unlike traditional computer programs that require manual, step-by-step instructions, Transformer LLMs teach themselves by identifying patterns in massive datasets.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Recipe for Intelligence&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;To build a model capable of understanding the world, researchers provide a "diet" of massive data archives:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Wikipedia:&lt;/b&gt; Provides a foundation of structured, factual knowledge.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Common Crawl:&lt;/b&gt; A massive archive containing millions to billions of web pages from across the internet.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The Scale of Parameters:&lt;/b&gt; These models are embedded with hundreds of billions of parameters to navigate these archives.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;What are Parameters?&lt;/b&gt; Parameters are the internal variables that define the model's architecture. Rather than just being "settings," they are the building blocks that allow the model to handle &lt;b&gt;complexity and nuance&lt;/b&gt;. For example, parameters are what help a model distinguish between a sarcastic remark and a serious statement.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;By using the &lt;b&gt;Self-Attention&lt;/b&gt; capabilities within their encoders and decoders, these models learn to "pay attention" to relevant data points, allowing them to extract deep meaning from the sequential text they encounter. Once these models have finished their "education" through this self-learning process, they are ready to move from the classroom to the real world.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Practical Magic: Real-World Applications&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;LLMs are no longer just academic experiments; they are transformative tools that are already changing how we work. By using specific mechanics like clustering and natural language prompts, they can perform tasks that once required hours of human labor in seconds.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Capability&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Action (The Mechanic)&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Real-World Example&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Answer Questions&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Extracts relevant information from digital archives.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;AI21 Studio&lt;/b&gt; (Answering general knowledge questions).&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Content Categorization&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Uses &lt;b&gt;Clustering Methodology&lt;/b&gt; to group text based on underlying sentiments or meanings.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Customer Sentiment Analysis&lt;/b&gt; and searching complex documents.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Coding&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Processes &lt;b&gt;Natural Language Prompts&lt;/b&gt; to generate functional code and technical commands.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;OpenAI Codex&lt;/b&gt; or &lt;b&gt;Amazon CodeWhisperer&lt;/b&gt; (Generating Python/Ruby, designing websites, writing shell commands, and SQL queries).&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style="text-align: justify;"&gt;Creativity on Demand&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Beyond data and code, LLMs are surprisingly creative. They are highly adept at &lt;b&gt;Copywriting&lt;/b&gt;, where they can create original content or improve the style and structure of existing text. They also excel at generating content from scratch, such as:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;Crafting original short stories for children.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;Writing detailed product documentation.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;Completing unfinished sentences with high accuracy and context-awareness.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;While these capabilities feel like magic today, researchers believe we are only seeing the beginning of what these models will eventually achieve as they evolve beyond simple text.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;The Future: Beyond the Text Box&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;As powerful as current models like ChatGPT, Llama 2, and Claude 2 are, they are still in their early stages. Researchers are currently working to fix "imperfections" by teaching models to discard incorrect answers and rectifying human biases that may be present in the training data.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The next generation of LLMs will move beyond text-based prompts. New methodologies are emerging where models are trained using &lt;b&gt;audio and video inputs&lt;/b&gt;. This multi-modal training is opening new possibilities, such as the integration of LLMs into &lt;b&gt;autonomous vehicles&lt;/b&gt;.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Future Disruptions&lt;/h3&gt;&lt;ol&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Organizational Remodeling:&lt;/b&gt; LLMs are expected to replace manual, repetitive, and monotonous tasks—much like robots changed manufacturing. This includes automating copywriting and replacing humans with &lt;b&gt;automated chatbots&lt;/b&gt; to resolve basic customer queries.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Advanced Conversational AI:&lt;/b&gt; Virtual assistants like Siri, Alexa, and Google Assistant will become far more sophisticated, interpreting user intent and handling complex commands with much higher efficiency.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Human-Level Competition:&lt;/b&gt; As these models become more adept at understanding and reasoning, they will create direct competition for human performance in various cognitive tasks.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Robot-Based LLMs:&lt;/b&gt; There is significant interest in merging LLM intelligence with physical robotics, creating machines that can both think and act in the physical world.&lt;/li&gt;&lt;/ol&gt;&lt;p style="text-align: justify;"&gt;The trajectory of Large Language Models suggests a future where these "digital brains" continue to grow in success and sophistication, with the potential to match—or even exceed—the performance of the human brain itself.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiysQ9vbe_gpetwyes9LMlL1f14ru6zdtkqH6l781kFYypLFEjBtTtjVcRzR6oKGFt4RksoSNQtjm0ufPIU1FW_wPCDaBXvt_xrBZOD9TbvOryflL_2RiFAWAWiGmg-Z3_KK-AblXD1qtBHC0wrhzEjV_yZv0dgztzU3DFWoe7B7qdehSzWHggvgvIvY7Ul/s72-w320-h175-c/8051MT_08052026_AI_LLMs_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>The Algorithm in the Room: How AI Quietly Rebuilt Your Daily Routine</title><link>http://8051microcontrollertutorial.blogspot.com/2026/05/8051MT08052026AIDailyRoutine.html</link><category>AI</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Fri, 8 May 2026 17:15:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-51909811423832364</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe09JWGoi0NbsEku5tXdikmqPXcx6o7x8zgZnMmNL_IQ5cwuXDtj7NMq81GuI90xVAtSwM3IzyxLfThcDvKhcTJmmoEedAMPHp7VgAQY6f6DfWxO51GdmuusgJI6dTB-NEpD5fJcEWGLD_0Pibz-wnBtVOrlW9h3YykpDu62ChO2d6Vyq_mMXfMaxTZAxM/s1408/8051MT_08052026_AI_DailyRoutine_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The Algorithm in the Room: How AI Quietly Rebuilt Your Daily Routine" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe09JWGoi0NbsEku5tXdikmqPXcx6o7x8zgZnMmNL_IQ5cwuXDtj7NMq81GuI90xVAtSwM3IzyxLfThcDvKhcTJmmoEedAMPHp7VgAQY6f6DfWxO51GdmuusgJI6dTB-NEpD5fJcEWGLD_0Pibz-wnBtVOrlW9h3YykpDu62ChO2d6Vyq_mMXfMaxTZAxM/w320-h175/8051MT_08052026_AI_DailyRoutine_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Introduction: The Quiet Revolution&lt;/b&gt; We often think of the AI revolution as a sudden explosion triggered by the arrival of tools like ChatGPT. In reality, artificial intelligence has been the silent architect of our digital lives for years. It has been quietly recalibrating our world, turning friction into flow without ever demanding credit. Before it was a headline, it was a subtle helper, upgrading our morning commutes and safeguarding our health long before we noticed the machinery behind the curtain.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Proactive Guardian: AI in Personal Health&lt;/b&gt; Modern habits have birthed a "grim reality" of lifestyle diseases driven by sedentary routines and a blurring work-life balance. AI has responded by evolving from a reactive tool into a proactive guardian. Wearable sensors now track our vital metrics in real-time, allowing for the kind of continuous oversight that once required a hospital visit.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Diabetic sensors exemplify this shift, automatically monitoring sugar levels and providing periodic updates to keep patients informed. This technology acts as an essential counter-measure to the stresses of the modern era, ensuring that health management is constant rather than occasional.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In recent times, the grim reality is that there is a spur in lifestyle diseases due to sedentary lifestyles and changes in work-life balance. Continuous health monitoring is the need of the hour to ensure the overall well-being of an individual.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Invisible Shield: How Banks Outsmart Fraud&lt;/b&gt; In our digital-first economy, the security of our finances has become a vital psychological anchor. AI-driven fraud detection software now works as an invisible shield, patrolling our transactions to identify and block suspicious patterns in milliseconds. This provides the "hassle-free" peace of mind necessary to navigate the era of net banking with total confidence.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Beyond defense, these systems act as personalized financial consultants for the user. By analyzing your unique spending habits, AI offers customized advice that helps you demystify your own economic health. It transforms a bank account from a simple ledger into a sophisticated tool for smarter lifestyle planning.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Breaking the Babel Barrier: International Travel Reimagined&lt;/b&gt; The sense of digital security we enjoy at home now extends across borders. As global travel becomes a standard of modern living, the friction of the unknown is being erased by AI-powered translation tools. These apps effectively shrink the world, allowing travelers to decode local languages and communicate with ease in regions where they once felt silenced.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;For the millions of air traffic passengers traversing the globe, navigation has also been fundamentally simplified. AI platforms like Google Maps analyze traffic congestion in real-time to suggest alternative routes before you even hit a bottleneck. What was once a source of international travel anxiety is now a streamlined, automated experience.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Bespoke Classroom: Personalized Education for the Modern Era&lt;/b&gt; The modern job market is a fast-moving landscape that demands we constantly refine our skill sets to stay competitive. To keep pace, learning innovators are leveraging AI to dismantle the old "one-size-fits-all" model of schooling. By tailoring the curriculum to an individual student’s specific needs and pace, AI creates a truly personalized educational journey.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;This shift is critical for anyone looking to remain tech-savvy in a crowded workforce. AI systems ensure that mastery is achieved before a student moves forward, making the pursuit of knowledge more efficient and relevant. Education is no longer a static milestone but a dynamic, adaptive process.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Bottom Line: The Economic Shift of Automation&lt;/b&gt; From a business perspective, AI is the ultimate engine of radical efficiency. By deploying 24/7 chatbots, companies can now automate fundamental customer support, redirecting users to human agents only for highly specific or detailed inquiries. This allows businesses to scale rapidly while ensuring that "AI-powered applications can complete the given task quickly while minimizing the total manpower cost."&lt;/p&gt;&lt;p style="text-align: justify;"&gt;However, this surge in profitability creates a palpable tension within the modern workforce. As software replaces manual work to drive higher profit margins, we are forced to rethink the traditional role of human labor. It is a transition that prizes operational speed but demands a new strategy for how we value human input in a world of automated tasks.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Conclusion: Living in the AI-Integrated Future&lt;/b&gt; AI is no longer a distant, futuristic concept; it is the invisible thread woven through the fabric of our lives. It has made our daily processes easy and flexible, from the way we shop and travel to how we protect our physical well-being. We have moved past the era of manual monitoring and into a stage of seamless, automated living.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;As we grow accustomed to these invisible upgrades, we must look at what remains. If our data, logistics, and health are now managed by algorithms, which of our more "creative" or "emotional" manual chores are the next candidates for an AI transformation?&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe09JWGoi0NbsEku5tXdikmqPXcx6o7x8zgZnMmNL_IQ5cwuXDtj7NMq81GuI90xVAtSwM3IzyxLfThcDvKhcTJmmoEedAMPHp7VgAQY6f6DfWxO51GdmuusgJI6dTB-NEpD5fJcEWGLD_0Pibz-wnBtVOrlW9h3YykpDu62ChO2d6Vyq_mMXfMaxTZAxM/s72-w320-h175-c/8051MT_08052026_AI_DailyRoutine_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>From Outputs to Outcomes: Mastering the "Usage First" Design Principle (Article Review)</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT25042026UsageFirstImplementationAfter.html</link><category>Article</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Tue, 28 Apr 2026 19:30:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-1699096950231014667</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiziwOZOdy07Trf7elKc0wvVHC5YlDy8AbXfp53ba30Q1ZVC3i8EVWQVRwcxysY4q5vbdRSm3R88YuM40sR1uDX57dxJaPJDV9i_IGrF9nFtci3y6VMXc-l69l-Xk7081Ag5KKqYDPNlIy78j6hk2iaEfuhs_sdyEGL80_KZKjO6Kz-ChfBvDqKQNoygegJ/s1376/8051MT_25042026_UsageFirstImplementationAfter_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="From Outputs to Outcomes: Mastering the &amp;quot;Usage First&amp;quot; Design Principle (Article Review)" border="0" data-original-height="768" data-original-width="1376" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiziwOZOdy07Trf7elKc0wvVHC5YlDy8AbXfp53ba30Q1ZVC3i8EVWQVRwcxysY4q5vbdRSm3R88YuM40sR1uDX57dxJaPJDV9i_IGrF9nFtci3y6VMXc-l69l-Xk7081Ag5KKqYDPNlIy78j6hk2iaEfuhs_sdyEGL80_KZKjO6Kz-ChfBvDqKQNoygegJ/w320-h179/8051MT_25042026_UsageFirstImplementationAfter_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2 style="text-align: justify;"&gt;The Core Philosophy: Usage First, Implementation After&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;In the career of an architect, there is a transformative "aha moment" where disparate coding tricks and design patterns coalesce into a single, strategic framework. For Jonathan Boccara, this synthesis was triggered by a guest post from Miguel Raggi and reinforced across three distinct, high-pressure projects. This realization led to the "Usage First" mindset—a fundamental shift from technical construction to purposeful design.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Usage First Principle:&lt;/b&gt; Prioritize the interface of the consumer over the convenience of the provider. Design the output, the interface, or the experience first—assuming any underlying implementation is possible—before determining technical constraints or storage requirements.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;By adopting this architectural discipline, project leaders secure three critical business advantages:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Higher User Retention and Conversion (Happy Users):&lt;/b&gt; By defining the ideal experience without initial technical bias, you identify the "awesome ideas" that drive engagement. Implementation costs are addressed only after the value proposition is solidified.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Reduced Total Cost of Ownership (Expressive Code):&lt;/b&gt; When developers design the "call site" before the function logic, the resulting code is naturally more expressive and readable. This clarity reduces long-term maintenance overhead and technical debt.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Accelerated Time-to-Market (Faster Development):&lt;/b&gt; Starting with the end usage defines the most "convenient format" for data. This eliminates the "guesswork" of schema design, ensuring that development effort is never wasted on storage structures that fail to support the final query.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;This philosophy is the most effective way to navigate the complexities of designing data-driven systems.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;The Scenario: The Lake Annecy Boat Rental System&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Consider a boat rental enterprise on Lac d'Annecy. During the peak summer season, the business must manage high-volume tourist traffic. To maximize revenue, the owner requires an online system that allows customers to secure bookings effortlessly.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;System Requirements&lt;/h3&gt;&lt;table border="1" style="border-collapse: collapse; text-align: justify; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Data Inputs (The Owner's Side)&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Desired Outputs (The User's Side)&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Raw opening schedules segmented by day type (weekends, weekdays, summer season).&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;A high-level availability matrix showing specific boat status for any given date.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Inventory list of available boats.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Granular booking slots ranging from 30-minute intervals to full-day reservations.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Hourly price lists for each boat class.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Real-time pricing calculated for the specific selected duration.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style="text-align: justify;"&gt;Defining "Usage" in Context&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;In this ecosystem, the "Usage" is the customer’s booking journey. The critical data point is not the owner's raw schedule or the price list in isolation; it is the &lt;b&gt;availability of a specific boat at a specific time in a convenient format.&lt;/b&gt; If the system cannot instantly present this availability matrix, the user cannot convert.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The designer’s success depends on which of two mentalities they apply to solve this problem.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Comparative Analysis: Input-First vs. Usage-First Design&lt;/h2&gt;&lt;h3 style="text-align: justify;"&gt;The "Natural Order" (Input-First Workflow)&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Most junior developers follow the "Forward Workflow," which mirrors the literal flow of data but creates architectural friction:&lt;/p&gt;&lt;ol&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Collect Input:&lt;/b&gt; Start with the data provided (opening times, boat descriptions).&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Design Storage:&lt;/b&gt; Attempt to design a database schema to hold this raw data.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Plan for Queries:&lt;/b&gt; Speculate on how the data might be queried later to show availability.&lt;/li&gt;&lt;/ol&gt;&lt;h3 style="text-align: justify;"&gt;The "Usage-First" Approach&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;This approach flips the workflow to prioritize the architectural end-state:&lt;/p&gt;&lt;ol&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Design the Output:&lt;/b&gt; Design the query and the data processing as if the data were already present in the most "convenient format" for the user interface.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Define the Format:&lt;/b&gt; Use this ideal query to &lt;i&gt;dictate&lt;/i&gt; exactly what the storage format must be.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Design Storage:&lt;/b&gt; Work backward to determine how to transform raw input into that pre-defined, convenient storage structure.&lt;/li&gt;&lt;/ol&gt;&lt;h3 style="text-align: justify;"&gt;The "So What?": Why it Matters&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The Usage-First path &lt;b&gt;removes the ambiguity of schema design.&lt;/b&gt; When you start with the input, you are guessing at what the database should look like. When you start with the usage, the query defines the schema with mathematical certainty. Reflecting on his own recent project experience, Boccara noted he was "impressed how it... resulted in a much faster development time." It ensures you build the &lt;i&gt;right&lt;/i&gt; implementation the first time.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;The Developer’s Advantage: Expressive Design and Speed&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;For the individual contributor, the Usage-First principle is a form of &lt;b&gt;Top-Down Design&lt;/b&gt; that enforces high-level abstraction and prevents "leaky abstractions."&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Pro-Tips for Usage-First Development&lt;/h3&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Write the Call Site First:&lt;/b&gt; Before writing a sub-function, write the code that &lt;i&gt;uses&lt;/i&gt; it. This forces you to design the interface from the perspective of the logic it serves.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Pretend Anything is Possible:&lt;/b&gt; Do not allow current technical hurdles or the lack of an existing library to limit your interface design.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Focus on the Interface:&lt;/b&gt; Select function names and parameters that fit the algorithm perfectly, ensuring the "call site" reads like a clear sentence.&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="text-align: justify;"&gt;The Insight of "Pretending"&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;By "pretending" a sub-function already exists, you ensure that internal implementation details—such as database IDs or complex data structures—do not accidentally "bleed" into your function signatures. This results in an interface shaped entirely by its use-case. It creates code that "fits" its environment, rather than code that forces the environment to adapt to its internal limitations.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Summary Checklist for Data-Driven Design&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Apply this strategic checklist to every new system component to ensure architectural integrity:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Identify the Consumer:&lt;/b&gt; Who or what is the primary consumer of this data or function (e.g., a tourist, an API client, or a high-level algorithm)?&lt;/li&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Define the "Convenient Format":&lt;/b&gt; Without considering database constraints, what is the most efficient format for the consumer to receive this information?&lt;/li&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Write the Call Site:&lt;/b&gt; Draft the line of code that utilizes the result before you write a single line of the underlying logic.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Work Backward to Storage:&lt;/b&gt; Based on the ideal output format, define the storage schema that makes that output easiest to generate.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Refine for Constraints:&lt;/b&gt; Only now, identify necessary trade-offs (e.g., 20% of user experience for 80% cost reduction).&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="text-align: justify;"&gt;Teacher’s Closing Note&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Usage-First design is the discipline that separates senior architects from standard coders. It is a mental shortcut to excellence. Whether you are architecting a global booking system or a single helper function, &lt;b&gt;starting with the end usage is the fastest way to build the right implementation.&lt;/b&gt; It replaces the "fog of how" with the "clarity of why."&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiziwOZOdy07Trf7elKc0wvVHC5YlDy8AbXfp53ba30Q1ZVC3i8EVWQVRwcxysY4q5vbdRSm3R88YuM40sR1uDX57dxJaPJDV9i_IGrF9nFtci3y6VMXc-l69l-Xk7081Ag5KKqYDPNlIy78j6hk2iaEfuhs_sdyEGL80_KZKjO6Kz-ChfBvDqKQNoygegJ/s72-w320-h179-c/8051MT_25042026_UsageFirstImplementationAfter_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>A New World Record in Beijing’s Half-Marathon between Robots &amp; Humans</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT28042026RoboticsNews.html</link><category>Article</category><category>Robotics</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Tue, 28 Apr 2026 15:02:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-2220227606051109393</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgC71sIBwmWR00f79OYkzHdXPQNazqqtO91TjYurRYPDA5dAQMe5LKhMUNSrFlowfu31ElQ7TdodBYrwXvV0RB7G7JHS3TGjiqkGTHYz6oDyAWpNGhPuAoQhAAIpoj-QV83LA6pyNRQ-c3fc6Z5ZuI5RVSi_VwZM2YP-QK-1iO8Bqo3FWWQ19JMVhEacuN/s1408/Robots%20Half-marthon%20Win%20In%20China%20-00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="A New World Record in Beijing’s Half-Marathon between Robots &amp;amp; Humans" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgC71sIBwmWR00f79OYkzHdXPQNazqqtO91TjYurRYPDA5dAQMe5LKhMUNSrFlowfu31ElQ7TdodBYrwXvV0RB7G7JHS3TGjiqkGTHYz6oDyAWpNGhPuAoQhAAIpoj-QV83LA6pyNRQ-c3fc6Z5ZuI5RVSi_VwZM2YP-QK-1iO8Bqo3FWWQ19JMVhEacuN/w320-h175/Robots%20Half-marthon%20Win%20In%20China%20-00.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3 style="text-align: justify;"&gt;Introduction: The "Whoosh" Moment in Beijing&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The 2026 Beijing E-Town Humanoid Robot Half-Marathon began as a spectacle and ended as a historical inflection point. For 29-year-old Zhao Haijie, one of 12,000 human runners, the moment of disruption arrived three miles in. It wasn’t the steady, rhythmic breathing of a human rival that signaled the overtake, but the mechanical whir of high-torque actuators and the staccato tap of carbon-fiber feet.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;This was no sanitized laboratory demonstration; it was a brutal, real-world stress test of bipedal locomotion. When the machines passed, it wasn't a gradual gain—it was a "whoosh" that signaled a permanent shift in the hierarchy of physical performance. The 50-minute milestone has been crossed, and the implications for the future workforce are as staggering as the speeds themselves.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 1: The Human Record Wasn't Just Beaten—It Was Shattered&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The star of the circuit was "Lightning," a bright-red humanoid developed by Honor. In a display of raw bipedal efficiency, Lightning crossed the finish line in a blistering &lt;b&gt;50 minutes and 26 seconds&lt;/b&gt;.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;To grasp the magnitude of this achievement, look at the data: Lightning didn’t just win; it effectively "lapped" human capability. It was nearly &lt;b&gt;12% faster&lt;/b&gt; (roughly seven minutes) than the standing human world record of 57:20 set by Jacob Kiplimo. Even with a late-race crash into a railing—which required a brief assist from technicians—the machine’s recovery speed was so high it still swept the podium alongside its Honor-developed stablemates.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;"I felt it was going quite fast," said Zhao Haijie, the fastest human in the race at 1:07:47. "It just went whoosh right past me."&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 2: From Humiliation to Domination in Just 12 Months&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;In the world of robotics, 12 months is an eternity when hardware-software vertical integration is a national priority. The 2026 results stand in jarring contrast to the inaugural 2025 race, which was a logistical nightmare for the machines.&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;2025:&lt;/b&gt; The winner, a robot named &lt;b&gt;Tiangong&lt;/b&gt;, clocked a sluggish 2:40:00. Only 6 of 21 entrants finished; the rest were victims of "fritzing," overheating, or total motor failure.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;2026:&lt;/b&gt; Over 100 robots competed. Four humanoids finished under an hour.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;This leap wasn't accidental. It is the direct result of China’s supply chain dominance in AI chips, sensors, and high-density batteries. Furthermore, Beijing’s &lt;b&gt;2026-2030 Master Plan&lt;/b&gt; for futuristic technologies has accelerated the development of brain chips and quantum computing integrations. What we witnessed was the physical manifestation of a top-down geopolitical hardware race.&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9dowAhZkjpDUOc7FWY8eKkEIEoT02BG7CqJBBxJ_ECTuLRvlCESyP4xxQLevS3ZM6MBXAC_i3cUXFVd6GHIfDZV6E64XcThxg2-6dcP8xJRaJRchKn0jEwnR6I97MPUDm4B4EWm9Tih40S5ENNRyXSeqe-j7aja39BLwtGuf0WPZg5RYaHrdyFzSymy-I/s974/Robots%20Half-marthon%20Win%20In%20China%20-01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="A New World Record in Beijing’s Half-Marathon between Robots &amp;amp; Humans" border="0" data-original-height="548" data-original-width="974" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9dowAhZkjpDUOc7FWY8eKkEIEoT02BG7CqJBBxJ_ECTuLRvlCESyP4xxQLevS3ZM6MBXAC_i3cUXFVd6GHIfDZV6E64XcThxg2-6dcP8xJRaJRchKn0jEwnR6I97MPUDm4B4EWm9Tih40S5ENNRyXSeqe-j7aja39BLwtGuf0WPZg5RYaHrdyFzSymy-I/w320-h180/Robots%20Half-marthon%20Win%20In%20China%20-01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 3: The "Mike Tyson" Paradox of Modern Humanoids&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The race revealed a stark developmental gap: the machines possess elite physical power but remain cognitively fragile. I call this the "Mike Tyson" Paradox—the body of a world-class athlete with the judgment of a toddler.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The environment was tellingly ironic: golf carts equipped with stretchers and wheelchairs trailed the mechanical runners in case of catastrophic failure. One unit face-planted 200 feet from the start, requiring its torso to be held together with packing tape just to continue. Another crossed the finish line with precision, only to immediately veer into a bush. Contrast these "athletes" with &lt;b&gt;Xiao Pai&lt;/b&gt;, the two-foot-tall companion robot that spent the race bouncing along carrying a baby bottle, and you see the sheer breadth of the 150+ companies currently flooding this market.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;"Robots today have the body of Mike Tyson but are still missing a brain like Stephen Hawking," explained Xue Qingheng, founder of Intercity Technology Co., whose model &lt;b&gt;Xiao Cheng&lt;/b&gt; successfully completed the race. "Once the brain problem is solved, the scope for imagination here is immense."&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 4: 40% Autonomy is the New Baseline&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Perhaps the most critical metric for industry analysts wasn't speed, but the "40% baseline." While some units were remotely piloted, 40% of the robots operated with total autonomy. These machines—including Xiao Cheng—navigated the 21km course using only onboard sensors, gait algorithms, and edge-AI.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Operating in a "wild" environment with 12,000 unpredictable humans and varying weather provides "edge case" data that laboratory simulations simply cannot replicate. For observers like 41-year-old financial worker Liu Yanli and his son Jinyu, this autonomy represented more than tech—it represented a future "sense of security" in elder care and domestic support.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Takeaway 5: It’s a Multi-Million Dollar "National Priority," Not a Hobby&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;This wasn't a recreational race; it was a high-stakes trade show. Honor’s victory is set to be rewarded with orders exceeding 1 million yuan ($146,500). In China, robotics is no longer a niche interest; it is a critical infrastructure play.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The mission is to move these machines from the pavement to the power grid. Developers are eyeing a future workforce where humanoids fix electrical grids, staff factories, and provide disaster response. By dominating the components—the batteries, the sensors, and the actuators—China is positioning itself to be the factory and the architect of the bipedal age.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Conclusion: The End of the Parallel Lane?&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBQvOrl9DQKUYZkrPZz5_pMcxl4SWHyFwhq-p8DG3rJFVC5s86zylA5fbF5arZ7MthkDtWbOCO9qyiMPRu34tBph1-bePjaavKKXk0wn78m8ozmo84_6kDn-pxjfLxKoSRcnh3PfQwNb-GK_ftRnYogjzUSk-O5Za3ll5HX4c3kvycfK7oJAM-o4ujSicm/s560/Robots%20Half-marthon%20Win%20In%20China%20-02.webp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Conclusion: The End of the Parallel Lane?" border="0" data-original-height="373" data-original-width="560" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBQvOrl9DQKUYZkrPZz5_pMcxl4SWHyFwhq-p8DG3rJFVC5s86zylA5fbF5arZ7MthkDtWbOCO9qyiMPRu34tBph1-bePjaavKKXk0wn78m8ozmo84_6kDn-pxjfLxKoSRcnh3PfQwNb-GK_ftRnYogjzUSk-O5Za3ll5HX4c3kvycfK7oJAM-o4ujSicm/w320-h213/Robots%20Half-marthon%20Win%20In%20China%20-02.webp" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;To ensure safety, organizers kept humans and robots in "parallel lanes" during the Beijing E-Town race. It was a fitting metaphor for our current era of AI: we are running alongside these machines, watching their rapid iteration with a mix of curiosity and trepidation.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;However, the 50-minute milestone suggests these lanes won't stay parallel for long. The speed of iteration—from the stumbling Tiangong of 2025 to the record-shattering Lightning of 2026—proves that the hardware is ready. The final question is no longer &lt;i&gt;if&lt;/i&gt; the machines will join our workforce, but how soon these "Mike Tyson" bodies will receive their "Stephen Hawking" brains. When that happens, the lanes will merge, and the human workforce will find itself in a very different race.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgC71sIBwmWR00f79OYkzHdXPQNazqqtO91TjYurRYPDA5dAQMe5LKhMUNSrFlowfu31ElQ7TdodBYrwXvV0RB7G7JHS3TGjiqkGTHYz6oDyAWpNGhPuAoQhAAIpoj-QV83LA6pyNRQ-c3fc6Z5ZuI5RVSi_VwZM2YP-QK-1iO8Bqo3FWWQ19JMVhEacuN/s72-w320-h175-c/Robots%20Half-marthon%20Win%20In%20China%20-00.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Navigating the Unknown: A Student’s Guide to Reading Unfamiliar Code</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT25042026UnderstandOthersCode.html</link><category>Article</category><category>C_Q&amp;A</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Mon, 27 Apr 2026 19:27:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-2356820278250489946</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBLXeEyMT2H-kmkK2XrPPNDDL9NDQN7cu_y4bU4Pl5vwwW7O4EiH8agzRVJ9zdJHgECibCzW8W7lNhlgYfnv9Kn1vNrD7_Q3KnA7OWytlzHf2nLvJ0UxDq6DhpTUBg7qoAiv3TuHmoghJRsmfNNQyAt794JZTmW6_DqP7dPJTZHrzTK6dw0wi921-ODlsQ/s1408/8051MT_25042026_UnderstandOthersCode_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Navigating the Unknown: A Student’s Guide to Reading Unfamiliar Code" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBLXeEyMT2H-kmkK2XrPPNDDL9NDQN7cu_y4bU4Pl5vwwW7O4EiH8agzRVJ9zdJHgECibCzW8W7lNhlgYfnv9Kn1vNrD7_Q3KnA7OWytlzHf2nLvJ0UxDq6DhpTUBg7qoAiv3TuHmoghJRsmfNNQyAt794JZTmW6_DqP7dPJTZHrzTK6dw0wi921-ODlsQ/w320-h175/8051MT_25042026_UnderstandOthersCode_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2 style="text-align: justify;"&gt;Introduction: The Mental Shift&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Faced with thousands of lines of "someone else’s code" spread across hundreds of files, it is natural to feel a sense of overwhelm. You might find yourself criticizing the style or architecture, imagining that if it were only written your way, it would be "easier" to grasp. However, as a mentor, I must tell you that the core difficulty is rarely a failure of the original author or a lack of your own skill; it is simply a &lt;b&gt;lack of a mental model&lt;/b&gt;.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;When you read your own code, the map of connections already exists in your mind. With unfamiliar code, that map is missing. To build it, you must shift your perspective from critic to explorer:&lt;/p&gt;&lt;p style="text-align: justify;"&gt;"Approach code without judgment, with the purpose of understanding, not evaluating."&lt;/p&gt;&lt;p style="text-align: justify;"&gt;By setting aside stylistic preferences, you clear the cognitive space required for deep learning. Before we begin pulling on the threads of the logic, however, we must ensure your environment is configured for active exploration.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Preparation: Setting the Stage for Exploration&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Diving into a complex codebase without the right tools is like navigating a dense forest in the dark. To gain the confidence needed for effective discovery, you must move the code from a static set of text files into a living, observable system.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; text-align: justify; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Tool/Action&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Primary Purpose&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Benefit for the Learner&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;&lt;b&gt;"Smart" IDE&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Indexes the codebase for navigation (jumping to definitions, finding usages).&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Allows you to trace connections instantly without losing your place in the file structure.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;&lt;b&gt;Building and Running&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Validates the environment and allows for runtime observation via a debugger.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Confirms the code is functional and provides a "live" look at how data actually flows.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;&lt;b&gt;Local Git Repository&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Initializing a baseline (&lt;code&gt;git init .; git add *; git commit -m "Baseline"&lt;/code&gt;).&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="text-align: left;"&gt;Creates a "safe zone" for fearless experimentation; you can revert any "discovery change" instantly.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align: justify;"&gt;Once your environment is stable and you can execute the program at will, you need a strategic entry point to begin your investigation.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Strategy: Finding the End of the Thread&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Code is non-linear; it is rarely meant to be read from file one to file one hundred. Think of it as many tangled balls of yarn on the floor. To make sense of it, you must find an interesting "end" and pull.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Power of "Grepping"&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;To find where execution begins for a specific feature, use your IDE's global search (often called "grepping") for external markers. Search for:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;GUI Elements:&lt;/b&gt; Visible text found on buttons, labels, or menu headers.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Command Line Options:&lt;/b&gt; Flags (e.g., &lt;code&gt;--verbose&lt;/code&gt;) used to launch the program.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Error Messages:&lt;/b&gt; Specific strings that appear when the system fails.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Input and Focus Events:&lt;/b&gt; Keyboard or mouse event handlers that reveal how the application integrates with the underlying platform.&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="text-align: justify;"&gt;Following the Button&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;In a GUI-driven application, "Following the Button" is a premier tactic for building a mental map:&lt;/p&gt;&lt;ol&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The Two-Step Search:&lt;/b&gt; Search for the button's text. In localized codebases, this string will lead you to a localization mapping file. From there, you must find the &lt;b&gt;Constant&lt;/b&gt; associated with that string, and then search for that constant in the source code to find the actual widget definition.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Locate the Handler:&lt;/b&gt; Identify the &lt;code&gt;onClick&lt;/code&gt; handler or the specific function tied to that widget's action.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Set a Breakpoint:&lt;/b&gt; Pause execution in the debugger when the button is clicked.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Analyze the Stack Trace:&lt;/b&gt; Look at the stack trace to see the path from the "main" loop to this specific handler. This reveals the dispatching mechanism of the entire framework.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Map the Object Tree:&lt;/b&gt; Use the debugger to traverse "parent" relationships. This helps you understand the widget hierarchy—a structure similar to a DOM tree—which reveals how the UI is logically organized.&lt;/li&gt;&lt;/ol&gt;&lt;p style="text-align: justify;"&gt;Once you have identified how the user interface triggers specific actions, the next logical step is to see how the system validates its own internal logic.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Using Tests as Runnable Documentation&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Traditional documentation is often outdated or missing, but tests represent the author's intent in a way that must remain compatible with the code. Integration and system tests are particularly valuable for new developers because they demonstrate the system’s "boundaries."&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Runnable Documentation:&lt;/b&gt; This term describes tests that serve as functional examples of how to initialize the system, which access points are primary, and which use cases were prioritized by the authors.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;As you form hypotheses about how the code works, use the test suite to verify them:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Discovery Refactoring:&lt;/b&gt; Write new tests or modify existing ones to see if the code behaves as you expect.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Pro-Tip:&lt;/b&gt; Treat this as "discovery code." Be prepared to delete these tests once you understand the logic. Deleting discovery code is vital; it prevents you from falling into the &lt;b&gt;sunk cost fallacy&lt;/b&gt;, where you try to force a codebase to fit an initial (and likely incorrect) mental model simply because you spent time writing code for it.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;While tests show how a system &lt;i&gt;should&lt;/i&gt; work, reading the entry point of the program shows how it &lt;i&gt;actually&lt;/i&gt; initializes its backbone.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Mapping the Big Players: Reading "Main" and Classes&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;To gain a high-level architectural view, you must find the "Main-like" function—the driver of the module or program.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Identifying the "Big Players"&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Read the "Main" function from top to bottom, focusing on the &lt;b&gt;cardinality&lt;/b&gt; of the objects created.&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The Engine:&lt;/b&gt; Look for "Big Players"—objects created at startup that last the lifetime of the program. If only one or two instances of a class are created (Singletons or Managers), they likely represent the architectural backbone.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The Anchors:&lt;/b&gt; Identify "Has-a" relationships. These objects hold onto other components and serve as the central anchors for your mental map.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The Context:&lt;/b&gt; Note which objects are passed into almost every function call; these represent the "Context" or "State" of the application.&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="text-align: justify;"&gt;Strategy Checklist for Reading a Class&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;When your investigation narrows to a specific class, use this checklist to decode its role:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Study Inheritance and Interfaces first:&lt;/b&gt; This reveals the "contract"—how the rest of the system is forced to view this class.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Grep for Includes/Imports:&lt;/b&gt; See which files rely on this class to understand its "neighborhood" and influence.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Analyze Public Functions:&lt;/b&gt; Treat the public API as the "command interface." Private functions are usually just implementation details; don't get bogged down in them until you understand the public commands.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;After the technical reading of files is complete, the final step is to move that knowledge from the screen into your long-term memory.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Solidifying Understanding: Refactoring and Rubber Ducking&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Learning is best achieved through action. "Discovery Refactoring"—changing names, extracting methods, or simplifying logic—forces you to engage with the code. However, avoid "style-guided refactorings" that focus on aesthetics; these can make you arrogant and blind to the original constraints that forced the author to write the code a certain way.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Retelling Process&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;To ensure your mental model is robust, move beyond "Rubber Ducking" (talking to an object) and engage in a social retelling:&lt;/p&gt;&lt;ol&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Synthesize Notes:&lt;/b&gt; Compile your diagrams and debugger traces into a cohesive story.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Explain the Logic:&lt;/b&gt; Try to explain a feature's flow to a colleague or write it as a fictional blog post.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Identify Gaps:&lt;/b&gt; The social pressure to be clear to another human will immediately highlight "fuzzy" areas in your understanding where your mental model is incomplete.&lt;/li&gt;&lt;/ol&gt;&lt;p style="text-align: justify;"&gt;Explaining to a real person prevents you from glossing over details, ensuring that your discovery code serves its purpose before it is deleted.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Conclusion: Embracing the Snapshot in Time&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Mastering the art of reading code is ultimately an exercise in professional empathy. As you navigate these files, remember to maintain the "Compassionate Programmer" mindset. Every codebase is a snapshot in time—a reflection of a specific moment where requirements were changing, plans were unfinished, and deadlines were looming.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Diverse coding styles are not obstacles; they are opportunities to see how different minds solve the same fundamental problems. Approach the work with kindness toward those who came before you, and you will find that the code begins to speak back.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBLXeEyMT2H-kmkK2XrPPNDDL9NDQN7cu_y4bU4Pl5vwwW7O4EiH8agzRVJ9zdJHgECibCzW8W7lNhlgYfnv9Kn1vNrD7_Q3KnA7OWytlzHf2nLvJ0UxDq6DhpTUBg7qoAiv3TuHmoghJRsmfNNQyAt794JZTmW6_DqP7dPJTZHrzTK6dw0wi921-ODlsQ/s72-w320-h175-c/8051MT_25042026_UnderstandOthersCode_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Stop Reading Code Like a Novel: 4 "Spoiler" Techniques for Instant Understanding</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT25042026UnderstandFunCode.html</link><category>C_Q&amp;A</category><category>CCode</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sun, 26 Apr 2026 19:22:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-8400589716932144037</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKNRmNWjfQiC8Pgd26ukb0Ju36nxG1mzc4uzPBiIibTv5iohQ3PPPpV9-DspfysMfULoXWUh53ensxDdgaOrMZPt-1PmOZ2Hhyphenhyphend7GH3PXQtgsWMzNNnKMdVWzqBlItJykk6spqxbARKUDcZb7DX-IotAnJpqyZikNRnVqNmawuIDd3bTC-Qa29_OGsgtO6/s1408/8051MT_25042026_UnderstandFunCode_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Stop Reading Code Like a Novel: 4 &amp;quot;Spoiler&amp;quot; Techniques for Instant Understanding" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKNRmNWjfQiC8Pgd26ukb0Ju36nxG1mzc4uzPBiIibTv5iohQ3PPPpV9-DspfysMfULoXWUh53ensxDdgaOrMZPt-1PmOZ2Hhyphenhyphend7GH3PXQtgsWMzNNnKMdVWzqBlItJykk6spqxbARKUDcZb7DX-IotAnJpqyZikNRnVqNmawuIDd3bTC-Qa29_OGsgtO6/w320-h175/8051MT_25042026_UnderstandFunCode_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;We’ve all been there: staring down a 500-line legacy function that feels like it was written to keep secrets rather than solve problems. Our natural instinct is to start at line one and read sequentially, just like we were taught in school. But here is the hard truth: reading a complex function "cover to cover" is a trap. It is slow, it is exhausting, and it’s often the least effective way to actually understand what is happening.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;To master legacy systems, you need to shift your approach. We are going to stop being passive readers and start performing an &lt;b&gt;Inspectional Reading&lt;/b&gt;. The goal isn’t to savor every line; it’s to gain maximum knowledge in minimum time.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Non-Fiction Mindset: Skimming is a Superpower&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;We’ve been told since childhood that skimming is a shortcut or a sign of laziness. In software engineering, I’m telling you it is a &lt;b&gt;professional superpower&lt;/b&gt;.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Source code is not a mystery novel. You aren't reading it for the prose or the plot twists; you’re reading it to acquire knowledge. Source code is non-fiction. When you approach a function, your &lt;b&gt;Inspectional Reading&lt;/b&gt; should have two immediate goals:&lt;/p&gt;&lt;ol&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Determine Relevance:&lt;/b&gt; Is this code even responsible for the bug or feature you’re working on?&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Identify the Main Message:&lt;/b&gt; What is the high-level intent before you get bogged down in the implementation details?&lt;/li&gt;&lt;/ol&gt;&lt;p style="text-align: justify;"&gt;"Source code is read for knowledge and understanding. Like non-fiction books. For this reason, you don't want to start by reading a function ‘cover to cover’."&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Get the Spoiler: Start at the End&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;If a function is a story, you need to know how it ends before you care about how it began.&lt;/p&gt;&lt;h4 style="text-align: justify;"&gt;Step Zero: Orient with the Signature&lt;/h4&gt;&lt;p style="text-align: justify;"&gt;Before you even look at the function body, look at the name, the parameters, and the return type. If the function is well-named (e.g., &lt;code&gt;calculateMonthlyTax&lt;/code&gt;), your inspectional reading becomes a confirmation mission rather than a discovery mission. This "Step Zero" orients your brain so you know exactly what to look for once you dive in.&lt;/p&gt;&lt;h4 style="text-align: justify;"&gt;Step One: Find the "Protagonist"&lt;/h4&gt;&lt;p style="text-align: justify;"&gt;Once you’re inside, skip straight to the last line. The logic of any function is a journey toward its output. By finding the "spoiler" at the end, you identify the &lt;b&gt;Protagonist&lt;/b&gt; of the story.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In a perfect world, this is a clean &lt;code&gt;return&lt;/code&gt; statement. However, in the trenches of legacy code, "returns" can be messy. Look for:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Explicit Return Values:&lt;/b&gt; The &lt;code&gt;return something;&lt;/code&gt; at the bottom.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Modified Parameters:&lt;/b&gt; Outputs passed back through the function’s arguments.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Global State:&lt;/b&gt; Changes to variables outside the function’s scope.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Exceptions:&lt;/b&gt; Values "returned" via error-handling channels.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;Whatever the form, the object being returned is the point of the function. Know the ending, and the rest of the code starts to make sense.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;"Get a big spoiler, skip to the end of the function's story, and start from the last line. It should look like return something."&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Spot the "Main Characters" via Frequency&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Once you’ve identified the protagonist, you need to find the other &lt;b&gt;Main Characters&lt;/b&gt;. In any function, the most important objects or variables are the ones that appear most often.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Don't just count them manually. &lt;b&gt;Use your IDE to your advantage: click a variable to highlight every occurrence within the function.&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;By looking at the &lt;b&gt;Frequency&lt;/b&gt; of these highlights, you can instantly distinguish between:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Main Characters:&lt;/b&gt; The central objects the function is designed to manipulate (e.g., &lt;code&gt;invoice&lt;/code&gt;, &lt;code&gt;userProfile&lt;/code&gt;).&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Secondary Characters:&lt;/b&gt; Supporting objects that exist only for a few lines to help with a specific calculation (e.g., &lt;code&gt;tempCounter&lt;/code&gt;, &lt;code&gt;i&lt;/code&gt;).&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;This is a life-saver for massive functions. Even if you are only looking at a specific 20-line block in a much larger script, the variables that are highlighted most frequently will tell you what that specific section is actually about.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Filter for the "Main Action"&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Not every line of code is created equal. To understand a function quickly, you must learn to filter out the noise. In every codebase, there is a distinct difference between the "main action" and the "bookkeeping."&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The Bookkeeping Style:&lt;/b&gt; These are secondary quests. They look like &lt;code&gt;if (log.isDebugEnabled())&lt;/code&gt;, null checks, input validation, or setting up secondary characters. It’s "administrative" code.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;The Main Action Style:&lt;/b&gt; This is the domain-specific business logic. It looks like &lt;code&gt;calculateInterest()&lt;/code&gt;, &lt;code&gt;updateInventory()&lt;/code&gt;, or &lt;code&gt;applyDiscount()&lt;/code&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Scanning Technique:&lt;/b&gt; Scan the lines rapidly. If a line looks like &lt;b&gt;Bookkeeping&lt;/b&gt;, don't dwell on it. Even if you don't fully understand the line, move on. Your "gut feeling" will improve with practice. You are looking for the lines that actually move the protagonist toward the ending you found in Section 2.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Pro-Tip: The Second Pass&lt;/b&gt; If you reach the end of a function and the "Main Action" still hasn't clicked, don't panic. Perform a second, rapid scan. You'll find it’s much easier the second time because your eyes are now familiar with the "landscape" of the code. The signal will naturally start to stand out from the noise.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Conclusion: Mastering the Inspectional Game&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Understanding code is a game of identification and filtration. When you stop being a passive reader and start being an active &lt;b&gt;Inspector&lt;/b&gt;, the friction of legacy code begins to melt away. You aren't there to read a story; you’re there to locate the primary objects, identify the conclusion, and filter out the secondary causes.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The next time you open a black-box function, will you start at line one, or will you skip straight to the ending?&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKNRmNWjfQiC8Pgd26ukb0Ju36nxG1mzc4uzPBiIibTv5iohQ3PPPpV9-DspfysMfULoXWUh53ensxDdgaOrMZPt-1PmOZ2Hhyphenhyphend7GH3PXQtgsWMzNNnKMdVWzqBlItJykk6spqxbARKUDcZb7DX-IotAnJpqyZikNRnVqNmawuIDd3bTC-Qa29_OGsgtO6/s72-w320-h175-c/8051MT_25042026_UnderstandFunCode_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Beyond the Scroll: Why Random Access is the Unsung Hero of Modern Programming </title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT25042026RandomAcessFile.html</link><category>Article</category><category>C_Q&amp;A</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sat, 25 Apr 2026 19:22:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-6609090989926841614</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj332BfXahflMs-xWwLc74VLA_YrlMqQRpX_3IuNP4pBsUPC9OfMrkheumbbwM1xNSlXA8BHWhadYNFGOAZ8nojVFad41QUGKb1XFzMfoaa63IPO568iY-PpfGC1eYpmp_UyztnCHQlnpuBUa5lweYRWkbLG0JRAjyPSXrBrENZcZuMRDJx4wM7nJxaZ2uG/s1408/8051MT_25042026_RandomAcessFile_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Beyond the Scroll: Why Random Access is the Unsung Hero of Modern Programming" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj332BfXahflMs-xWwLc74VLA_YrlMqQRpX_3IuNP4pBsUPC9OfMrkheumbbwM1xNSlXA8BHWhadYNFGOAZ8nojVFad41QUGKb1XFzMfoaa63IPO568iY-PpfGC1eYpmp_UyztnCHQlnpuBUa5lweYRWkbLG0JRAjyPSXrBrENZcZuMRDJx4wM7nJxaZ2uG/w320-h175/8051MT_25042026_RandomAcessFile_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;Imagine trying to find a single specific sentence in a massive book, but you are forced to read every word from page one until you reach it. This linear frustration was the technical reality of early computing, where data was stored on large reels of magnetic tape. To reach a specific record, the system had to physically wind through the entire tape sequentially.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The transition to modern disks revolutionized programming by enabling random access—the ability to jump directly to any byte in a file. This capability is the silent engine behind every efficient database and modern application. In this post, we will explore the most impactful takeaways for handling files in C and reveal how mastering raw byte streams provides unparalleled control over your data.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Why Binary Files are Actually "Simpler" Than Text&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;It sounds counter-intuitive to many students, but binary files are significantly easier to manage than text files when implementing random access. In a text file, certain byte values are reserved for control characters that add a layer of complexity for the parser. For example, the value 13 represents a carriage return, 10 is a line feed, and 26 marks the end of a file (EOF).&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Software reading text files must constantly monitor and interpret these specific values, whereas a binary file treats every byte as a raw, neutral value. This lack of "special meaning" ensures that what you write is exactly what you get back, without the system interfering with the data stream.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;A binary file is a file of any length that holds bytes with values in the range 0 to 255.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;By working within this 0–255 range without hidden control characters, developers can treat the file as a clean, predictable stream of information. Modern high-level languages often abstract this further by treating all data as "streams," but the logic remains rooted in these raw binary foundations.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Art of "Teleporting" Through Data&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Random access allows you to move to any part of a file to read or write data without the overhead of traversing the entire file from the beginning. In C, we manage this "teleportation" through navigation tools like &lt;code&gt;fseek&lt;/code&gt; and &lt;code&gt;ftell&lt;/code&gt;, or their more robust counterparts, &lt;code&gt;fgetpos&lt;/code&gt; and &lt;code&gt;fsetpos&lt;/code&gt;.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;As an educator, I must emphasize that the choice between these pairs is not just stylistic—it is about scalability. While &lt;code&gt;fseek&lt;/code&gt; and &lt;code&gt;ftell&lt;/code&gt; are common, they rely on standard integers to track file positions, which can lead to overflows in very large files. To build professional-grade applications, you should use &lt;code&gt;fgetpos&lt;/code&gt; and &lt;code&gt;fsetpos&lt;/code&gt;, which utilize the &lt;code&gt;fpos_t&lt;/code&gt; type specifically designed to handle massive file offsets that exceed integer limits.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Power of the "+"—Deciphering File Mode Combinations&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Opening a file in C requires a "mode," and adding a "+" to that mode is a small change that grants massive flexibility by allowing both reading and writing simultaneously. However, you must choose your base mode carefully to avoid accidental data loss. For instance, &lt;code&gt;w+&lt;/code&gt; is destructive; it creates a new file or immediately truncates an existing one to zero length.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In contrast, &lt;code&gt;r+&lt;/code&gt; requires the file to already exist, making it the safer choice for editing existing data. One of the most technically nuanced modes is &lt;code&gt;a+&lt;/code&gt;, which opens a file for both reading and appending. This mode is unique because it handles the removal of the EOF marker before writing new data and ensures the marker is restored once the write is complete, maintaining the integrity of the file structure.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Performance Cost of "Success"&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Even helpful feedback can become a bottleneck if it is implemented without considering performance. In many Windows-based examples, you might see a user-defined function like &lt;code&gt;FileSuccess()&lt;/code&gt; used to output the success or failure of a file operation along with the filename to the system debugger.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;While this is a helpful helper function during the initial development phase, it comes with a hidden cost. Outputting text to a system debugger involves significant overhead that can drastically slow down an application that performs frequent file operations.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;It's a little onerous if you are after performance, so you might limit this to debugging.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;To maintain high-performance standards, ensure that such system-level messaging is strictly limited to your debugging builds and stripped out before the software reaches production.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The "Index and Data" Architecture&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The most powerful application of random access is the "Index and Data" architecture. In this system, you maintain a fixed-size &lt;code&gt;index.dat&lt;/code&gt; file containing structs that store the position (&lt;code&gt;fpos_t&lt;/code&gt;) and the size of data records. These markers point to variable-length content stored in a separate &lt;code&gt;data.dat&lt;/code&gt; file, allowing you to find any specific record almost instantly.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;While this technique is the foundational logic beneath sophisticated systems like SQLite and MySQL, it requires a disciplined approach to file management. Some developers attempt to write records to a position far beyond the current end of the file to "reserve" space.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;As a best practice, I warn against this: writing to positions beyond the current end of the file is not a good technique and is generally not portable across different operating systems. For reliable software, always build your files sequentially or within the bounds of your established index.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Nuance of Closing Files (Leaks vs. Losses)&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The &lt;code&gt;fclose&lt;/code&gt; command is often the most overlooked part of the file lifecycle, yet its misuse carries different risks depending on the operation. If you fail to close a file after a write operation, you face the very real threat of data loss. This is because C uses fixed-sized buffers; data is often held in memory and only "flushed" to the physical disk once the buffer is full or the file is explicitly closed.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;On the other hand, failing to close a file after a read operation primarily results in a memory leak. While the data on the disk remains safe, your application continues to consume system resources unnecessarily. This makes &lt;code&gt;fclose&lt;/code&gt; the most critical tool for ensuring both the integrity of your data and the stability of the host system.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Conclusion: The Foundation of Modern Data&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Even in an era dominated by high-level, inexpensive databases, the fundamental logic of random access remains indispensable. It provides the ultimate "canvas" for data storage, offering a level of precision and flexibility that abstractions simply cannot match.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;By mastering these raw streams, you move from being a user of tools to a creator of them. In a world of high-level abstractions, how much more control could you gain by mastering the raw streams of bytes beneath your applications? The ability to read or write anywhere in a binary file is not just a technical feature; it is the absolute foundation of modern data management.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj332BfXahflMs-xWwLc74VLA_YrlMqQRpX_3IuNP4pBsUPC9OfMrkheumbbwM1xNSlXA8BHWhadYNFGOAZ8nojVFad41QUGKb1XFzMfoaa63IPO568iY-PpfGC1eYpmp_UyztnCHQlnpuBUa5lweYRWkbLG0JRAjyPSXrBrENZcZuMRDJx4wM7nJxaZ2uG/s72-w320-h175-c/8051MT_25042026_RandomAcessFile_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>The Robotics Software Career Pathway: From Foundational Code to Intelligent Machines</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT15042026RoboticSoftwareEngg.html</link><category>Article</category><category>Robotics</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sun, 19 Apr 2026 17:19:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-7027747250650390452</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYCmKXOdFE4mZ-eAC8h4by2ASQHprdtbCkv80B1a1S52CE-QL62_TzgmHoRn9e5qHHpup__JKzFqVjJ9svHwuq6GUgm8OLmzRV9Dt0IUw9Mhyon0039vSTLDAq0JQU8A6fnkc8hBTPxc8zhwhLW6X2L2gjk3AhNVq8gmuEe4rGk3Hnsw6uZEjdXc6ecSoH/s1408/8051MT_15042026_RoboticSoftwareEngg_Im01.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The Robotics Software Career Pathway: From Foundational Code to Intelligent Machines" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYCmKXOdFE4mZ-eAC8h4by2ASQHprdtbCkv80B1a1S52CE-QL62_TzgmHoRn9e5qHHpup__JKzFqVjJ9svHwuq6GUgm8OLmzRV9Dt0IUw9Mhyon0039vSTLDAq0JQU8A6fnkc8hBTPxc8zhwhLW6X2L2gjk3AhNVq8gmuEe4rGk3Hnsw6uZEjdXc6ecSoH/w320-h175/8051MT_15042026_RoboticSoftwareEngg_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h2&gt;Introduction: The Software Heart of Modern Robotics&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;Robots have successfully transitioned from the pages of science fiction to industry-transforming realities. Today, they are the silent drivers behind autonomous vehicles navigating complex city grids and the precision behind surgical robots performing life-saving procedures. While the sleek mechanical designs often capture the headlines, the true "unsung heroes" of this technological revolution are the robotic software engineers. These architects write the complex code that allows a machine to not just move, but to perceive, reason, and act within a dynamic world.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;To transition from a curious observer to a creator of these intelligent systems, you must first master the foundational technical stack that serves as the universal entry point for all robotic specializations.&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;The Essential Toolkit: Core Foundations&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;In the robotics industry, your value as an engineer is defined by the depth of your foundational tools. These are not merely "nice-to-have" skills; they represent the professional baseline for any serious hiring team.&lt;/p&gt;&lt;h3&gt;The Roboticist’s Foundational Stack&lt;/h3&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Core Skill&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Key Application&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The "So What?" for Learners&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;C++&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Real-time performance and speed-critical systems.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The industry gatekeeper skill; mastery is required for high-salary roles where performance is non-negotiable.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Python&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Prototyping, data analysis, and machine learning integration.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Your primary tool for rapid development and turning raw robot logs into actionable intelligence.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Linux&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Primary development environment and robot OS.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Non-negotiable for system administration, debugging, and command-line mastery in professional environments.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;ROS&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Hardware abstraction, message passing, and visualization.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The "common language" of robotics startups; mastering ROS makes you a "plug-and-play" candidate for most teams.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Mathematics&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Transformations, state estimation, and path planning.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The underlying logic that prevents a robot from being a mere toy and makes it a precision instrument.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style="text-align: justify;"&gt;The Role of Mathematics in Robotics&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Robotics is fundamentally an exercise in applied mathematics. To solve real-world navigation and estimation problems, you must move beyond theory into these specific applications:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Linear Algebra:&lt;/b&gt; Crucial for calculating coordinate transformations so a robot knows exactly where its manipulator arm is relative to its base during complex &lt;b&gt;navigation&lt;/b&gt;.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Probability:&lt;/b&gt; The key to managing the "uncertainty" of real-world sensors; it is the backbone of &lt;b&gt;state estimation&lt;/b&gt;, helping the robot calculate its most likely status in an unpredictable environment.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Algorithms:&lt;/b&gt; The procedural logic required to solve &lt;b&gt;sensor fusion&lt;/b&gt; and find the most efficient paths through trees and graphs.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;Once these tools are mastered, they provide the flexibility to specialize in the "brain" functions of the machine.&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Pathway 1: Navigation, Perception, and World-Building&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;This pathway focuses on the internal intelligence of the robot—creating a digital mirror of the physical world so the machine can operate within it.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The Collective Goal:&lt;/b&gt; Helping the robot answer the two most critical questions for any autonomous agent: "Where am I?" and "What is around me?"&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Localization Engineer:&lt;/b&gt; Employs &lt;b&gt;state estimation algorithms&lt;/b&gt; like Kalman Filters or Particle Filters to determine a robot's precise coordinates. &lt;i&gt;Real-World Output: Determining a robot's exact position within a centimeter using IMUs and cameras.&lt;/i&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Mapping Engineer:&lt;/b&gt; Processes &lt;b&gt;point clouds&lt;/b&gt; to build 3D representations of the environment. &lt;i&gt;Real-World Output: Creating the digital "floor plan" an autonomous vacuum or warehouse bot uses to navigate.&lt;/i&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Perception Engineer:&lt;/b&gt; Utilizes &lt;b&gt;computer vision and deep learning&lt;/b&gt; (PyTorch/TensorFlow) to interpret sensor data. &lt;i&gt;Real-World Output: Distinguishing between a stationary mailbox and a moving pedestrian.&lt;/i&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Path Planning Engineer:&lt;/b&gt; Develops &lt;b&gt;C++ algorithms for trees and graphs&lt;/b&gt; to plot safe trajectories. &lt;i&gt;Real-World Output: Finding the most efficient route from Point A to Point B while avoiding obstacles.&lt;/i&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Tracking Engineer:&lt;/b&gt; Focuses on &lt;b&gt;frame-to-frame association&lt;/b&gt; to monitor moving objects over time. &lt;i&gt;Real-World Output: Ensuring an autonomous car keeps its "eye" on a cyclist even through visual noise.&lt;/i&gt;&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Calibration Engineer:&lt;/b&gt; Uses &lt;b&gt;checkerboard patterns and ICP (Iterative Closest Point)&lt;/b&gt; to align sensors. &lt;i&gt;Real-World Output: Ensuring the "eyes" (cameras) and "ears" (Lidar) of the robot are perfectly synchronized.&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;Once the robot understands its environment, those digital decisions must be translated into physical force and motion.&lt;/p&gt;&lt;h2 style="text-align: justify;"&gt;Pathway 2: Control, Manipulation, and Hardware Interaction&lt;/h2&gt;&lt;p style="text-align: justify;"&gt;This pathway bridges the gap between high-level logic and the physics of the real world. It requires an obsession with reliability and hardware-software synchronicity.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Key Features of this Pathway&lt;/h3&gt;&lt;ol&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Low-Level Hardware Interface:&lt;/b&gt; The direct translation of code into electrical signals for motors and sensors.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Physics-Based Control:&lt;/b&gt; The application of mechanics to manage torque, force, and velocity.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;System Initialization:&lt;/b&gt; The critical "bringup" phase where the software first meets the silicon and steel.&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;Role Comparison: Drivers vs. Controls&lt;/h3&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Feature&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Driver Engineer&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Controls Engineer&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Primary Focus&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Hardware interfaces (Cameras, Radars, Lidars).&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Actuators and motor movement.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Data Type&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Binary data parsing and timing consistency.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Physics-based algorithms and mechanical feedback.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;System Priority&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Reliability of the data stream.&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Determinism&lt;/b&gt; via Real-Time Operating Systems (RTOS).&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;b&gt;The Manipulation Engineer: The Ultimate Expression of Control&lt;/b&gt; The Manipulation Engineer represents a specialized peak in this pathway, often working on complex robotic arms. This role requires the precision of a Controls Engineer mixed with a deep understanding of &lt;b&gt;feedback loops&lt;/b&gt; to ensure the robot can interact with objects—like picking up a fragile glass or performing surgery—without failure. These engineers often act as the bridge to &lt;b&gt;business stakeholders&lt;/b&gt;, ensuring the robot's physical output meets strict performance requirements.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Spotlight: New Device Bringup Engineer&lt;/b&gt; For those looking for an &lt;b&gt;entry point&lt;/b&gt;, this role is ideal. It focuses on flashing operating systems, networking, and running initial functionality tests via bash scripts. It requires less advanced algorithmic knowledge than Path Planning but offers invaluable hands-on experience with the hardware lifecycle.&lt;/p&gt;&lt;p&gt;As these physical systems scale, they require a massive infrastructure to ensure they remain efficient and safe.&lt;/p&gt;&lt;h2&gt;Pathway 3: Infrastructure, Optimization, and Reliability&lt;/h2&gt;&lt;p&gt;A robot is only as good as the system that supports it. This pathway ensures that the robot's "brain" doesn't overheat and its software doesn't crash in the field.&lt;/p&gt;&lt;h3&gt;The Lifecycle of a Robotic System&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;Deployment (DevOps Engineer):&lt;/b&gt; Manages the "pipeline," using Docker and Jenkins to ensure that new code reaches the robot's hardware securely and without error.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Execution (Executor Engineer):&lt;/b&gt; The "resource manager" who handles multi-threading and CPU/GPU load management to ensure the brain doesn't stall.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Testing (Simulation Engineer &amp;amp; Tester):&lt;/b&gt; Before a robot touches the floor, these engineers test code in virtual worlds (Gazebo/Unity) and use Python/Jira to hunt down bugs.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Efficiency (Optimization Engineer):&lt;/b&gt; The specialist who uses &lt;b&gt;CUDA and GPU acceleration&lt;/b&gt; to make sure complex algorithms run in milliseconds rather than seconds.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;b&gt;The Feedback Loop (Data Analyst):&lt;/b&gt; The Data Analyst serves as the system's "memory." By using Python to parse massive amounts of robot logs and cloud data, they identify performance trends and edge-case errors, providing the insights needed for the next iteration of the robot’s software.&lt;/p&gt;&lt;p&gt;While these roles manage the internal machine, the final step is ensuring the robot can coexist and communicate with humans.&lt;/p&gt;&lt;h2&gt;Pathway 4: The Human-Robot Interface&lt;/h2&gt;&lt;p&gt;These roles are the "translators" of the robotics world. They are essential for making complex, multi-million dollar machines accessible and safe for non-technical users.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Physical Interaction (HCI Engineer):&lt;/b&gt; Focuses on how the robot communicates via non-digital means, such as status lights, gestures, or voice through Natural Language Processing (NLP).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Digital Interaction (UI Engineer):&lt;/b&gt; The architects of the web and mobile apps (using JavaScript, Java, or Swift) that allow a user to command a fleet of robots from a tablet.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Long-Distance Interaction (Remote Control Engineer):&lt;/b&gt; Developers of low-latency teleoperation systems. This is life-critical for drones or surgical robots where a human operator must have zero-lag control over the machine’s movements.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;These interface roles move the robotic system beyond a technical marvel and into a tool that provides genuine human impact.&lt;/p&gt;&lt;h2&gt;Conclusion: Choosing Your Specialized Niche&lt;/h2&gt;&lt;p&gt;The field of robotics software engineering is a vast landscape with room for diverse talents, from the mathematically inclined to the hardware-obsessed. As you begin your journey, use this self-assessment to find the niche that matches your natural curiosity:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;If you love deep math and statistical models:&lt;/b&gt; Focus on &lt;b&gt;Localization&lt;/b&gt;, &lt;b&gt;Tracking&lt;/b&gt;, or &lt;b&gt;Perception&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;&lt;b&gt;If you love hardware, electronics, and low-level code:&lt;/b&gt; Look toward &lt;b&gt;Driver Engineering&lt;/b&gt; or &lt;b&gt;New Device Bringup&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;&lt;b&gt;If you enjoy gaming tech and virtual physics:&lt;/b&gt; Explore &lt;b&gt;Simulation Engineering&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;&lt;b&gt;If you want to design how humans perceive and feel about tech:&lt;/b&gt; Focus on &lt;b&gt;HCI&lt;/b&gt; or &lt;b&gt;UI Engineering&lt;/b&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Your roadmap to the future starts with a single commitment. &lt;b&gt;Master C++ and Python.&lt;/b&gt; These are the keys to the kingdom, allowing you to contribute to the next wave of machines that will reshape our world.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYCmKXOdFE4mZ-eAC8h4by2ASQHprdtbCkv80B1a1S52CE-QL62_TzgmHoRn9e5qHHpup__JKzFqVjJ9svHwuq6GUgm8OLmzRV9Dt0IUw9Mhyon0039vSTLDAq0JQU8A6fnkc8hBTPxc8zhwhLW6X2L2gjk3AhNVq8gmuEe4rGk3Hnsw6uZEjdXc6ecSoH/s72-w320-h175-c/8051MT_15042026_RoboticSoftwareEngg_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>The AI Programming Compass: A Beginner’s Guide to Languages for Intelligent Systems</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT15042026AIPgmingLanguages.html</link><category>AI</category><category>Article</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sat, 18 Apr 2026 17:14:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-4821779727675492018</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMKhiFLeTkidfD70DiJcO_kAOMUHY9fOE_Cdx6zCMOnKatpzuS71NrRfTgauQp7p9N7ciRMw3zVD8HFZxOHqPratLwiRZnWvAwGJGtQCFOVT6oKNVwW4yU3tgam5N2PwtZcWRMsJo1KGQRAxALD-NSvAkiUcCnv3HnTcT2w2HsCrZaYqBHnsz_C0aJHkTk/s1408/8051MT_15042026_AIPgmingLanguages_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The AI Programming Compass: A Beginner’s Guide to Languages for Intelligent Systems" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMKhiFLeTkidfD70DiJcO_kAOMUHY9fOE_Cdx6zCMOnKatpzuS71NrRfTgauQp7p9N7ciRMw3zVD8HFZxOHqPratLwiRZnWvAwGJGtQCFOVT6oKNVwW4yU3tgam5N2PwtZcWRMsJo1KGQRAxALD-NSvAkiUcCnv3HnTcT2w2HsCrZaYqBHnsz_C0aJHkTk/w320-h175/8051MT_15042026_AIPgmingLanguages_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;Introduction: Why One Language Doesn't Fit All in AI&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;As a curriculum architect, I often see learners mistake a programming language for a mere tool. In the realm of Artificial Intelligence, the language you choose is the very foundation of your system’s architecture. While general-purpose languages can perform basic logic, the specialized demands of AI—processing millions of parameters in a neural network or managing massive datasets—require specific technical capabilities. Choosing the wrong foundation can lead to "technical debt" (costly future rework) or "performance bottlenecks" that make real-time interaction impossible.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In AI development, a language’s value is measured by three architectural pillars:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Rich Libraries and Frameworks&lt;/b&gt;: High-level frameworks for machine learning (ML) and deep learning allow you to stand on the shoulders of giants. This saves time by preventing you from having to write complex mathematical functions from scratch.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Performance and Efficiency&lt;/b&gt;: AI is computationally expensive. Languages that excel in memory optimization and execution speed are essential for handling the high-performance computing requirements of modern intelligent systems.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Readability and Maintainability&lt;/b&gt;: AI is an iterative process. You will constantly refine your models. Clean syntax ensures that your code is not only understandable to you six months from now but also scalable for team-wide collaboration.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;The specific choice of language depends on which of these pillars is most critical to your project's architectural integrity.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Power Players: Versatility and Ease of Use&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;For those entering the field, the "Power Players" offer a balance of accessibility and robustness. These languages are the primary entry points for learners because they boast massive community support and clear paths from theory to deployment.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Language&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Primary Strength&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Top Use Case&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Key Benefit for Beginners&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Python&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Extreme versatility and flexibility&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;General AI, ML, and Scientific Computing&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Simple syntax and the world’s most extensive AI library ecosystem.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Java&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Procedural concurrent paradigm&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Enterprise-scale AI applications&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Robust maintainability and "Write Once, Run Anywhere" portability.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;C#&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Multi-paradigm approach&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;AI for Gaming (Unity) and Prototyping&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Well-elaborated development environment and easy prototyping.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="text-align: justify;"&gt;While these languages offer a gentle learning curve and broad utility, some high-stakes AI tasks require the raw computational speed that only lower-level languages can provide.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Performance Engines: Speed and Scalability&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;When an AI application requires processing speed comparable to the hardware’s limit, we turn to "Performance Engines." C++, Scala, and Julia are designed for "computationally intensive" tasks and "distributed systems" (networks of independent computers acting as one). However, as an architect, you must account for the high development effort these languages demand.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;To harness this power, a learner must accept the following trade-offs:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Steep Learning Curves&lt;/b&gt;: Mastering memory management and complex syntax requires significantly more time than high-level languages.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Verbose or Complex Syntax&lt;/b&gt;: You will write more code to accomplish tasks that Python might handle in a single line.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Maturity Gaps (Julia Warning)&lt;/b&gt;: Julia is an impressive scientific-oriented language with packages like &lt;b&gt;Mocha&lt;/b&gt; and &lt;b&gt;MLBase&lt;/b&gt;, but its young ecosystem means fewer resources and a smaller community than established giants.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;[ ] &lt;b&gt;Architectural Complexity&lt;/b&gt;: Languages like &lt;b&gt;C++&lt;/b&gt; (using &lt;b&gt;Alchemy&lt;/b&gt; for Markov logic or &lt;b&gt;Mlpack&lt;/b&gt; for general ML) and &lt;b&gt;Scala&lt;/b&gt; (built for scalability) prioritize machine efficiency over developer comfort.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;Moving from how fast code runs to how code actually "thinks" brings us to a group of languages specialized in logic, statistics, and symbolic reasoning.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Specialists: Logic, Symbols, and Statistics&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;These languages are built to handle the "symbolic" side of AI, focusing on relationships and data-driven decision-making rather than just raw numbers.&lt;/p&gt;&lt;h4 style="text-align: justify;"&gt;Lisp&lt;/h4&gt;&lt;p style="text-align: justify;"&gt;As the heritage language of AI, Lisp is the master of symbolic AI. Its "homoiconic" nature (code that can be treated as data) allows it to manipulate complex datasets and express intricate algorithms with unmatched flexibility. Learners can still leverage classic resources like &lt;b&gt;Eurisko&lt;/b&gt; or &lt;b&gt;CYC&lt;/b&gt; to understand the roots of symbolic reasoning.&lt;/p&gt;&lt;h4 style="text-align: justify;"&gt;Prolog&lt;/h4&gt;&lt;p style="text-align: justify;"&gt;Prolog utilizes a logic programming approach. It is invaluable for tasks that require expressing complex relationships between objects and performing symbolic computations. If your project involves deep logical reasoning or rule-based systems, Prolog’s unique structure is a primary asset.&lt;/p&gt;&lt;h4 style="text-align: justify;"&gt;Erlang&lt;/h4&gt;&lt;p style="text-align: justify;"&gt;Erlang is the specialist for concurrency (the ability to handle multiple tasks simultaneously) and elastic clouds. It is the architect’s choice for scalable AI that must remain fault-tolerant. Its logic programming capabilities are often extended through libraries like &lt;b&gt;erlog&lt;/b&gt;.&lt;/p&gt;&lt;h4 style="text-align: justify;"&gt;R&lt;/h4&gt;&lt;p style="text-align: justify;"&gt;R is a declarative language built for statistics and data visualization. Through the &lt;b&gt;CRAN repository&lt;/b&gt;, it offers the most comprehensive set of statistical functions available, making it the industry standard for data-driven modeling and academic research.&lt;/p&gt;&lt;h4 style="text-align: justify;"&gt;Matlab&lt;/h4&gt;&lt;p style="text-align: justify;"&gt;Matlab is the specialist for numerical computation. With its heavy focus on matrix and linear algebra, it provides a highly stable environment and specialized toolboxes for machine learning that are widely used in engineering and research sectors.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;While these specialists define specific domains, there is a secondary tier of supporting tools that fill unique gaps in the AI ecosystem.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Niche &amp;amp; Supporting Tools: Functional and Lightweight Options&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;These "hidden gems" are often used in conjunction with primary languages to solve specific architectural puzzles, such as parallelization or rapid interactive development.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Clojure&lt;/b&gt;: A functional language on the JVM that excels in rapid interactive development and behavior tree construction via libraries like &lt;b&gt;alter-ego&lt;/b&gt;.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Go&lt;/b&gt;: Praised for simplicity, Go utilizes built-in concurrency and libraries like &lt;b&gt;Golearn&lt;/b&gt; to build efficient, asynchronous AI applications.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Haskell&lt;/b&gt;: An academic favorite that offers a functional paradigm with easy parallelization (executing multiple computations at once), making it a pragmatic choice for neural network implementations.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Lua&lt;/b&gt;: A lightweight, flexible language that has become a staple for AI experimentation through its integration with the &lt;b&gt;Torch&lt;/b&gt; framework.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Summary Comparison: Learning Difficulty vs. Primary Role&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Choosing the right language requires balancing your current skill level with the specific "Core Identity" your project requires.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Language&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Learning Difficulty&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Core Identity&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Python&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Beginner-Friendly&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Industry Standard&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;C#&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Beginner-Friendly&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Prototyping Specialist&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Go&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Beginner-Friendly&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Simple Modern Tool&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Java&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Intermediate&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Enterprise Workhorse (Tweety, ML libraries)&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;R&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Intermediate&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Statistical Powerhouse&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Matlab&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Intermediate&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Academic Specialist&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Lua&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Intermediate&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Lightweight Experimenter&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Julia&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Intermediate&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Scientific Newcomer (Mocha, MLBase)&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Clojure&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Intermediate&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Interactive Functional Tool&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;C++&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Steep Learning Curve&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The High-Performance Engine (Alchemy, Mlpack)&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Scala&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Steep Learning Curve&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Scalable Data Processor&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Lisp&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Steep Learning Curve&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Symbolic AI Heritage&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Erlang&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Steep Learning Curve&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Concurrency Master&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Prolog&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Steep Learning Curve&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Logic Specialist&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Haskell&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Steep Learning Curve&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;The Parallelization Expert&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Conclusion: Navigating Your Path&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;In the dynamic landscape of artificial intelligence, the "best" language is a moving target. You must weigh community support and library maturity (like Python’s ecosystem or R’s CRAN) against the performance constraints of your hardware. As an AI architect, your goal is to select the tool that minimizes development friction while maximizing system efficiency.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;The best language for AI development is one that aligns closely with the goals and constraints of the project.&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMKhiFLeTkidfD70DiJcO_kAOMUHY9fOE_Cdx6zCMOnKatpzuS71NrRfTgauQp7p9N7ciRMw3zVD8HFZxOHqPratLwiRZnWvAwGJGtQCFOVT6oKNVwW4yU3tgam5N2PwtZcWRMsJo1KGQRAxALD-NSvAkiUcCnv3HnTcT2w2HsCrZaYqBHnsz_C0aJHkTk/s72-w320-h175-c/8051MT_15042026_AIPgmingLanguages_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How Open Source is Democratizing the Future of Robotics: Top Takeaways for 2026 and Beyond</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT15042026RoboticPgmingEnvironments.html</link><category>Article</category><category>Robotics</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Fri, 17 Apr 2026 17:04:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-5571026386332483983</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyQWpvBPtf8Av_ziYO69pwOav8E8KvJxpOSVe9E0wbNq66H6vMMlPFW-Fv_a0zmASqZ9tAlS7pSPUo4OqwgcsgkIyc13d1NxVP8yo2mFYSq3wVFVfYpbijAUNDtZ3qEkRAZb4q5ZnqDcuY2EMiQ8ykb5QeMJ-qUG2vrF2K2rj-wfiBVeBLu4ztwWpnxLGZ/s1584/8051MT_15042026_RoboticPgmingEnvironments_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="How Open Source is Democratizing the Future of Robotics: Top Takeaways for 2026 and Beyond" border="0" data-original-height="672" data-original-width="1584" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyQWpvBPtf8Av_ziYO69pwOav8E8KvJxpOSVe9E0wbNq66H6vMMlPFW-Fv_a0zmASqZ9tAlS7pSPUo4OqwgcsgkIyc13d1NxVP8yo2mFYSq3wVFVfYpbijAUNDtZ3qEkRAZb4q5ZnqDcuY2EMiQ8ykb5QeMJ-qUG2vrF2K2rj-wfiBVeBLu4ztwWpnxLGZ/w320-h136/8051MT_15042026_RoboticPgmingEnvironments_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3 style="text-align: justify;"&gt;Introduction: The Low Barrier to High Tech&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;For decades, the path to building a functional robot was blocked by a massive iron gate. It was the exclusive domain of high-budget research labs and elite corporations, where proprietary hardware and guarded software secrets reigned supreme. If you weren't backed by a multi-million dollar grant, your robotic dreams were likely grounded. Today, however, we are witnessing a paradigm shift. Open-source software has effectively dismantled those gates, flipping the script and empowering anyone with a laptop and a spark of curiosity to build sophisticated, intelligent machines.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The secret sauce behind this revolution is the collaborative nature of the open-source movement. Rather than working in silos, developers across the globe contribute to a vast ecosystem of tools that fosters lightning-fast innovation. This shared foundation means that today’s makers aren't wasting time reinventing the wheel; instead, they are standing on the shoulders of giants, benefiting from continuous improvements, frequent bug fixes, and a library of resources that grows by the hour.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In this guide, we’re going to dive into the most impactful open-source tools driving this democratization in 2026 and beyond. From the classroom to the high-end research facility, these platforms are the engines of the next great technological leap. Whether you’re a student taking your first steps or a seasoned engineer ready to scale, these are the tools that make the "limitless possibilities" of robotics a reality for everyone.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Arduino IDE: Not Just for Beginners Anymore&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The Arduino IDE has long been celebrated as the gold standard for entry-level prototyping, thanks to its user-friendly interface and massive community support. By providing a central hub to write and upload code to microcontrollers across Windows, macOS, and Linux, it has become the bedrock of the maker movement. However, the recent 2024 landscape reveals a platform that has evolved into something much more powerful than a simple learning tool.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Through its ever-expanding library of functions, the Arduino IDE now supports cutting-edge technologies like machine learning and computer vision. This shift is a total game-changer for the DIY community. It signifies the transformation of Arduino from a tool used to control basic LEDs into a sophisticated platform capable of hosting complex robots that make intelligent decisions at the edge. The significance of this cannot be overstated: we are moving from simple automation to true "Edge AI," allowing even small-scale projects to process complex data in real-time.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Bridging the Gap: The Power of Visual Programming (Open Roberta Lab &amp;amp; Scratch 3)&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;For many budding roboticists, the biggest hurdle is learning complex syntax. Visual programming environments solve this by letting creators focus on logic through "drag-and-drop" blocks. While both Open Roberta Lab and Scratch 3 excel at lowering the entry barrier, they serve different niches in the ecosystem. While Open Roberta Lab provides a structured, lab-based environment for specific robotics platforms, Scratch 3 offers a more open-ended creative canvas that requires third-party plugins to bridge into hardware.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Open Roberta Lab&lt;/b&gt;, spearheaded by the prestigious Frauenhofer Institute, is a cornerstone of robotics education. In 2024, it expanded its reach significantly by introducing compatibility with entirely new robotics platforms. This ensures that students can move seamlessly from virtual logic to hands-on interaction with a wider variety of hardware. In contrast, &lt;b&gt;Scratch 3&lt;/b&gt;, the brainchild of the MIT Media Lab, remains focused on creative storytelling and games but extends its reach into the physical world via plugins for the Raspberry Pi. Recent 2024 updates to Scratch 3 have introduced an enhanced user interface and new block functionalities, making it a more engaging "bridge" for those moving from software to hardware.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;"Open-source software remains a cornerstone of accessible and versatile robot programming solutions."&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Snap4Arduino: The Hybrid Solution&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;Snap4Arduino serves as the ultimate "missing link" for makers who love the visual logic of the Snap! interface but need the raw power of a dedicated microcontroller. It is a specialized offline platform designed to bridge the gap between abstract coding and physical hardware interaction. This tool is particularly significant for visual learners who want to tackle more advanced projects without leaving their preferred programming environment.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The technical heartbeat of this interaction is the &lt;b&gt;Firmata firmware&lt;/b&gt;. To get Snap4Arduino talking to your sensors and actuators, this firmware must be uploaded to the Arduino board first. The recent 2024 updates have made this process more seamless than ever, offering improved compatibility with newer board models and adding fresh block functionalities specifically tailored for modern robotics applications. This allows for a much more intuitive hardware experience when building complex sensor-driven machines.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Simulate Before You Build: The Safety Net of Gazebo and V-REP&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;One of the smartest moves any roboticist can make is testing their creations in a virtual environment before a single motor turns in the real world. This is where 3D simulators like Gazebo and V-REP become essential. They act as a safety net, allowing you to refine robot behaviors and catch catastrophic errors without risking expensive hardware or wasting physical resources.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Gazebo is a powerhouse in this space, primarily known for its tight integration with the Robot Operating System (ROS), making it a staple for developers who need to iterate on complex navigation behaviors. On the other hand, V-REP is a favorite for research and academic applications due to its realistic physics simulation and its incredibly diverse library of robot models. Whether you are conducting high-level research or teaching the fundamentals of physics-based movement, these simulators ensure your robot is ready for the rigors of the physical world long before it leaves the screen.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Scaling Up: ROS and the Mastery of Complexity&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;When you are ready to move beyond simple prototypes and build something truly professional-grade, the &lt;b&gt;Robot Operating System (ROS)&lt;/b&gt; is the robust framework you need. It is important to clarify a key technical distinction: ROS is not a traditional operating system like Windows or Linux. Instead, it is a vast collection of libraries and tools designed to handle the "heavy lifting" of high-level robotics.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;ROS is the brain behind advanced machines, managing complex tasks such as:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Navigation:&lt;/b&gt; Precision path planning and movement through dynamic environments.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Manipulation:&lt;/b&gt; The fine-tuned control of robotic arms and grippers.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Perception:&lt;/b&gt; Using sensor data to interpret and understand the surrounding world.&lt;/li&gt;&lt;/ul&gt;&lt;p style="text-align: justify;"&gt;The significance of ROS lies in its ability to manage these advanced functionalities in a unified way. While it certainly has a steeper learning curve than visual block languages, it is the ideal—and often mandatory—choice for anyone serious about mastering the mastery of robotic complexity.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The "Eyes" of the Machine: OpenCV&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;For a robot to navigate the physical world autonomously, it must be able to "see" and interpret its surroundings. This is the specific niche of &lt;b&gt;OpenCV&lt;/b&gt; (Open Source Computer Vision Library). In the modern robotics stack, OpenCV provides the mandatory tools for visual perception, turning raw camera data into actionable information.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;By utilizing OpenCV, developers can equip their machines with object recognition and obstacle avoidance capabilities. This shift is critical because it moves a robot from being a "blind" machine following a pre-set path to an autonomous agent capable of identifying landmarks, tracking targets, or safely navigating through a crowded, unpredictable room. Without computer vision, the dream of truly independent robotics simply isn't possible.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Conclusion: Your Move to Build&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The open-source landscape of 2026 is a testament to what happens when knowledge is shared and innovation is decentralized. From the intuitive, lab-based blocks of Open Roberta Lab to the professional-grade frameworks of ROS and OpenCV, the tools to change the world are now within your reach. This vast ecosystem ensures that the future of technology is not written by a select few, but by a global community of makers, students, and engineers.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The blueprints have been drawn, the simulators are running, and the libraries are more capable than ever. The only thing missing from the equation is your unique vision. With the barrier to entry lower than ever, what robotic masterpiece will you bring to life first?&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyQWpvBPtf8Av_ziYO69pwOav8E8KvJxpOSVe9E0wbNq66H6vMMlPFW-Fv_a0zmASqZ9tAlS7pSPUo4OqwgcsgkIyc13d1NxVP8yo2mFYSq3wVFVfYpbijAUNDtZ3qEkRAZb4q5ZnqDcuY2EMiQ8ykb5QeMJ-qUG2vrF2K2rj-wfiBVeBLu4ztwWpnxLGZ/s72-w320-h136-c/8051MT_15042026_RoboticPgmingEnvironments_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>The Robotics Language Map: A Beginner’s Guide to How Robots "Think" and "Move"</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT15042026RoboticPgmingLanguages.html</link><category>Article</category><category>Robotics</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Thu, 16 Apr 2026 16:57:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-560400477051775284</guid><description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3&gt;Introduction: The Multidisciplinary Nature of Robotics&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHLVYnbEHdsvW2XH-18DTx8b_m4A_QIk5MzRYFKQcJIr1CJ_mEy8CvhtLjcziiVUCLIc0p-kh3ZGd9cFvmF0qrVtTZoHrre369SCRg49NRXa8Waq1fWRfRRiwzdr2nBisf75MBjf5lwV5rgMi1SbdFh3zP2yYlxS58y_DVyuij7EcONeExP1GCcvYSdNC/s1584/8051MT_15042026_RoboticPgmingLanguages_Im03.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Introduction: The Multidisciplinary Nature of Robotics" border="0" data-original-height="672" data-original-width="1584" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHLVYnbEHdsvW2XH-18DTx8b_m4A_QIk5MzRYFKQcJIr1CJ_mEy8CvhtLjcziiVUCLIc0p-kh3ZGd9cFvmF0qrVtTZoHrre369SCRg49NRXa8Waq1fWRfRRiwzdr2nBisf75MBjf5lwV5rgMi1SbdFh3zP2yYlxS58y_DVyuij7EcONeExP1GCcvYSdNC/w320-h136/8051MT_15042026_RoboticPgmingLanguages_Im03.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;Building a robot is a unique engineering challenge that requires the seamless integration of physical hardware and digital intelligence. In the world of robotics education, we often describe this as creating a &lt;b&gt;"body"&lt;/b&gt; (the mechanical frame, sensors, and actuators) and a &lt;b&gt;"mind"&lt;/b&gt; (the software code that governs behavior). Because robotics intersects electrical design, mechanical systems, and artificial intelligence, no single programming language can handle every task perfectly.&lt;/p&gt;&lt;p&gt;The language you choose is the foundation of your robot's capabilities, directly impacting these five core areas:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Hardware Control:&lt;/b&gt; The precision with which the software manages motors and sensors.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Communication:&lt;/b&gt; The speed and reliability of data exchange between various robot components.&lt;/li&gt;&lt;li&gt;&lt;b&gt;AI Integration:&lt;/b&gt; The ease of implementing "smart" features like computer vision or autonomous navigation.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Scalability:&lt;/b&gt; How effectively the software system can grow from a simple prototype to a complex industrial machine.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Community Support:&lt;/b&gt; Access to pre-built libraries, troubleshooting forums, and expert documentation.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Just as humans use different parts of their nervous system for abstract logic and involuntary movement, robots utilize different programming languages to separate high-level decision-making from rapid, physical actions.&lt;/p&gt;&lt;p&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3&gt;The "Gateway" Role: Visual Logic for Absolute Beginners&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0HNQuHCW0C3ILdhEBdAyb_TJAK5_-sDqLA7XyNHlYRSbWrTVZBSuw2rFtGnGZgxNZ0kbF4xcllnFgDa6G91tFGKWFqicx5s6-923lDLoUCqbba213t2F_2jbsoZ1dROYrsGipTwDGoJyYSNr6fMH3cK5ePrSU3fPHijYlHl5FMdens8MJpkSxL6FoaZDK/s1584/8051MT_15042026_RoboticPgmingLanguages_Im02.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The &amp;quot;Gateway&amp;quot; Role: Visual Logic for Absolute Beginners" border="0" data-original-height="672" data-original-width="1584" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0HNQuHCW0C3ILdhEBdAyb_TJAK5_-sDqLA7XyNHlYRSbWrTVZBSuw2rFtGnGZgxNZ0kbF4xcllnFgDa6G91tFGKWFqicx5s6-923lDLoUCqbba213t2F_2jbsoZ1dROYrsGipTwDGoJyYSNr6fMH3cK5ePrSU3fPHijYlHl5FMdens8MJpkSxL6FoaZDK/w320-h136/8051MT_15042026_RoboticPgmingLanguages_Im02.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;For those brand new to the field, the primary barrier to entry is often "syntax"—the strict, often confusing rules of how code must be typed. Visual logic platforms, such as &lt;b&gt;Scratch&lt;/b&gt; and &lt;b&gt;Blockly&lt;/b&gt;, serve as the ideal entry point. These tools allow learners to focus on pure logic by dragging and dropping command blocks.&lt;/p&gt;&lt;p&gt;The "so what?" is simple: by using block-based languages, beginners prevent the "syntax errors" that often discourage new learners, allowing them to master the sequence of logic required to make a robot move before they ever have to type a line of code. However, keep in mind that these are not suitable for large-scale or complex industrial applications due to limited flexibility.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Platforms that support visual logic include:&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;LEGO Mindstorms:&lt;/b&gt; The gold standard for classroom STEM education.&lt;/li&gt;&lt;li&gt;&lt;b&gt;mBot:&lt;/b&gt; An accessible platform for learning sensor-based interaction.&lt;/li&gt;&lt;li&gt;&lt;b&gt;VEX Robotics:&lt;/b&gt; Uses VEXcode to bridge the gap between blocks and professional code.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Arduino:&lt;/b&gt; Supports various block interfaces for entry-level microcontroller projects.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Once the underlying logic is understood, the next step is providing the robot with the higher-level "intelligence" required for autonomous operation.&lt;/p&gt;&lt;p&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3&gt;The "Brain" Role: High-Level Decision Making and AI&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYppqtkv6py7sOGvR9m9ug4SvK32RPTReMJXp84iJeYYjzuC3828lp2xLczF7cPnkKzwIIGcCRM7mN7nZ7-I7V45PiCFfSBBCLn-Ok-1MnYCgu9vQr_07VsHJWc8HqLG8nF02XL9cUyqXHqQ9G9l-yVzOfGkbiebmzR-U_cj0HS_v83c_gt6d7s-HfGDsq/s1584/8051MT_15042026_RoboticPgmingLanguages_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The &amp;quot;Brain&amp;quot; Role: High-Level Decision Making and AI" border="0" data-original-height="672" data-original-width="1584" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYppqtkv6py7sOGvR9m9ug4SvK32RPTReMJXp84iJeYYjzuC3828lp2xLczF7cPnkKzwIIGcCRM7mN7nZ7-I7V45PiCFfSBBCLn-Ok-1MnYCgu9vQr_07VsHJWc8HqLG8nF02XL9cUyqXHqQ9G9l-yVzOfGkbiebmzR-U_cj0HS_v83c_gt6d7s-HfGDsq/w320-h136/8051MT_15042026_RoboticPgmingLanguages_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;When a robot needs to identify an object, navigate an environment, or process natural language, it needs a language that can handle massive amounts of data with ease. &lt;b&gt;Python&lt;/b&gt; is the undisputed leader in this "Brain" role. It is the go-to language for researchers and AI developers because its simplicity allows for rapid prototyping and simulation.&lt;/p&gt;&lt;p&gt;While Python dominates modern AI, &lt;b&gt;LISP&lt;/b&gt; and its variant &lt;b&gt;Scheme&lt;/b&gt; remain specialized tools for "experimental AI." These languages are favored in cognitive robotics for reasoning systems and logic-based planning that require symbolic processing.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Ease of Learning:&lt;/b&gt; Its intuitive, readable syntax is accessible to beginners and non-programmers.&lt;/li&gt;&lt;li&gt;&lt;b&gt;AI Powerhouse:&lt;/b&gt; It features world-class libraries for machine learning and vision, including &lt;b&gt;TensorFlow&lt;/b&gt;, &lt;b&gt;PyTorch&lt;/b&gt;, and &lt;b&gt;OpenCV&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Rapid Prototyping:&lt;/b&gt; Ideal for simulations and academic research where testing ideas quickly is more important than raw execution speed.&lt;/li&gt;&lt;li&gt;&lt;i&gt;Note:&lt;/i&gt; While highly versatile, Python is slower than compiled languages and is not ideal for low-level hardware programming.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;While Python handles the complex "thinking," a different language is needed for the fast, precise "reflexes" required for a robot’s physical survival and movement.&lt;/p&gt;&lt;p&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3&gt;The "Reflex" Role: Precision Control and Real-Time Action&lt;/h3&gt;&lt;p&gt;For operations where a millisecond matters—such as drone flight stability, industrial motor control, or &lt;b&gt;SLAM (Simultaneous Localization and Mapping)&lt;/b&gt;—&lt;b&gt;C++&lt;/b&gt; is the industry standard. Known as the "Powerhouse" of robotics, C++ provides the "reflexes" needed for performance-critical systems. It is a compiled language that sits close to the hardware, making it the primary choice for &lt;b&gt;Embedded Systems&lt;/b&gt; and firmware.&lt;/p&gt;&lt;p&gt;C++ is also the foundational language of the &lt;b&gt;Robot Operating System (ROS)&lt;/b&gt;, the framework used by professional engineers to build and scale advanced robotic applications.&lt;/p&gt;&lt;p&gt;&lt;b&gt;The Three Main Benefits of C++:&lt;/b&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;Speed:&lt;/b&gt; Offers the high execution speed necessary for real-time sensor fusion and time-sensitive operations.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Fine-Grained Hardware Control:&lt;/b&gt; Allows for direct memory management and low-level hardware interfacing.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Portability and Scalability:&lt;/b&gt; The premier choice for building large, professional-grade software that must run across various hardware architectures.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;As we move beyond the brain and reflexes, specialized languages fill essential niches in the robotics ecosystem.&lt;/p&gt;&lt;p&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3&gt;Specialized Roles: The Supporting Cast&lt;/h3&gt;&lt;p&gt;Not every robotics task requires the raw speed of C++ or the AI depth of Python. Specialized languages are often chosen for their specific environments, such as web connectivity or mathematical modeling.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Language&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Core Function&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Best For&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Java&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Platform Independence &amp;amp; Garbage Collection&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Android-based controllers, educational competitions (FIRST), and large networked systems.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;JavaScript&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Web Connectivity &amp;amp; IoT&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Building robot dashboards, telemetry interfaces, and internet-controlled projects. (&lt;i&gt;Note: High latency limits its use in real-time control.&lt;/i&gt;)&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;MATLAB&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Numerical Computing &amp;amp; Matrix Operations&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Modeling robot kinematics, control algorithm development, and research. (&lt;i&gt;Note: Proprietary and high cost.&lt;/i&gt;)&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3&gt;Summary: Choosing Your Starting Point&lt;/h3&gt;&lt;p&gt;Your "starting language" should align with your specific robotics ambition. Based on industry standards, here is the recommended path forward:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;The Beginner/Student Path:&lt;/b&gt; Start with &lt;b&gt;Scratch&lt;/b&gt; to master the fundamentals of logic, then move to &lt;b&gt;Python&lt;/b&gt;. Python’s vast community support ensures you won't get stuck for long.&lt;/li&gt;&lt;li&gt;&lt;b&gt;The Professional/Engineer Path:&lt;/b&gt; Prioritize &lt;b&gt;C++&lt;/b&gt;. It is the essential language for performance-critical systems. Once comfortable, learn &lt;b&gt;Python&lt;/b&gt; to handle AI integration and rapid testing.&lt;/li&gt;&lt;li&gt;&lt;b&gt;The Researcher/Academic Path:&lt;/b&gt; Focus on &lt;b&gt;MATLAB&lt;/b&gt; for modeling and simulation, and &lt;b&gt;Python&lt;/b&gt; for modern AI and vision research. For those exploring symbolic reasoning and logic-based planning, investigate &lt;b&gt;LISP&lt;/b&gt; or &lt;b&gt;Scheme&lt;/b&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The "right" language ultimately depends on the specific robot you want to build. Whether you are aiming for the stars with a rover or building your first DIY rover at home, choosing the right tool for the task is your first step toward innovation.&lt;/p&gt;&lt;p&gt;
--------------------------------------------------------------------------------
&lt;/p&gt;&lt;h3&gt;The Quick-Reference Role Map&lt;/h3&gt;&lt;p&gt;Use this table to identify which languages are supported by the most popular platforms in the industry today.&lt;/p&gt;&lt;table border="1" style="border-collapse: collapse; width: 100%;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Robotics Platform&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Supported Languages&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Primary Use Case&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;ROS (Robot Operating System)&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Python, C++&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Professional systems &amp;amp; advanced research.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Arduino&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;C/C++, Python (via Firmata)&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Low-level microcontroller projects &amp;amp; DIY hardware.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Raspberry Pi&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Python, C++, Java, JavaScript&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Multi-purpose "brain" for hobbyist robots and IoT.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;LEGO Mindstorms&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Scratch, Python, Java&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Early STEM education and classroom learning.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;VEX Robotics&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;VEXcode (C++, Blocks)&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Middle and high school robotics competitions.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;b&gt;Webots&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Python, C++, Java, MATLAB&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Professional-grade robot modeling and simulation.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHLVYnbEHdsvW2XH-18DTx8b_m4A_QIk5MzRYFKQcJIr1CJ_mEy8CvhtLjcziiVUCLIc0p-kh3ZGd9cFvmF0qrVtTZoHrre369SCRg49NRXa8Waq1fWRfRRiwzdr2nBisf75MBjf5lwV5rgMi1SbdFh3zP2yYlxS58y_DVyuij7EcONeExP1GCcvYSdNC/s72-w320-h136-c/8051MT_15042026_RoboticPgmingLanguages_Im03.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Beyond Circuits: 5 Essential Languages That Are Redefining Modern Electronics Engineering</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT150420265PgmingLanguages.html</link><category>Article</category><category>Robotics</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Wed, 15 Apr 2026 16:57:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-2618126958303785380</guid><description>&lt;p style="text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Shattering the "Hardware-Only" Myth&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3HFfuWybe5j464VAgSJvH0vWwxh55Zw3NC8BJPKzr8uWT2tp_aXDroRxCNNT7VgNbw9dEE6ovU08R-KfoGp9tq_QppUj25SG7yITDrAm5hm6WZSInuSG5pEci1sf_Iqfc9Q-m0JGnRbwzd3LqVIf54KFWUYvYcNMt4JCu55P24cbOhW6CTw4PjTVAi92F/s1408/8051MT_15042026_5PgmingLanguages_Im01.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Shattering the &amp;quot;Hardware-Only&amp;quot; Myth" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3HFfuWybe5j464VAgSJvH0vWwxh55Zw3NC8BJPKzr8uWT2tp_aXDroRxCNNT7VgNbw9dEE6ovU08R-KfoGp9tq_QppUj25SG7yITDrAm5hm6WZSInuSG5pEci1sf_Iqfc9Q-m0JGnRbwzd3LqVIf54KFWUYvYcNMt4JCu55P24cbOhW6CTw4PjTVAi92F/w320-h175/8051MT_15042026_5PgmingLanguages_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;As a career strategist in the embedded space, who see it constantly: brilliant students who believe coding is a "soft" skill reserved for IT departments. Let me be clear: adhering to a hardware-only mindset is no longer just a misconception—it is a &lt;b&gt;career-limiting mistake&lt;/b&gt;. The line between silicon and software has evaporated.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Modern electronics engineering demands a "hardware-aware" coding mindset. Whether you are designing a high-speed PCB or a complex ASIC, your success depends on your ability to understand how high-level instructions translate into physical electron flow. To build the future, you must be as comfortable with a compiler as you are with an oscilloscope.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;The Unshakable Foundation: Why C is the Non-Negotiable Price of Entry&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhunF6adh06H1SMezT4_KEA7WX9q8OS1HlHAuL9ZwdCWk9aBEDi3gzH7Eq44NELbUhJOH_b78FJu9VqlUsQTD_6YMb5TTX6hAjC4DCThVLxr4mh9D3Rcu_l38YacNW51kPfZthtW6KzaVEkpZYIlKHP12FHICS0-ndQLyxsE1XFVnvbfcNpWAHuwoS1Y52T/s1408/8051MT_15042026_5PgmingLanguages_Im05.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The Unshakable Foundation: Why C is the Non-Negotiable Price of Entry" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhunF6adh06H1SMezT4_KEA7WX9q8OS1HlHAuL9ZwdCWk9aBEDi3gzH7Eq44NELbUhJOH_b78FJu9VqlUsQTD_6YMb5TTX6hAjC4DCThVLxr4mh9D3Rcu_l38YacNW51kPfZthtW6KzaVEkpZYIlKHP12FHICS0-ndQLyxsE1XFVnvbfcNpWAHuwoS1Y52T/w320-h175/8051MT_15042026_5PgmingLanguages_Im05.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;In the world of embedded systems, C is not just another language; it is the industry’s backbone. While flashy high-level languages come and go, C remains dominant because it provides the granular control over memory and hardware that timing-critical systems require.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;To understand why C wins, you must understand the foundation of execution: &lt;b&gt;Compilers versus Interpreters&lt;/b&gt;. While interpreted languages like Python execute code line-by-line (making them slow and unpredictable for real-time tasks), C is a compiled language. The compiler translates the entire codebase into binary machine instructions in one go, ensuring the speed and efficiency necessary for a flight control system or a medical device.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;A widespread myth among electronics engineering students is that coding is exclusive to software or IT roles. Many believe that core electronics domains—whether VLSI, embedded systems, or analog design—don't require programming skills. This assumption couldn't be further from the truth.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;To move beyond the "beginner" label, you must master the "meat" of the language that most students avoid. This includes:&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Pointers and Pointer Arithmetic:&lt;/b&gt; Navigating memory addresses directly.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Bit Manipulation:&lt;/b&gt; Using masking and toggling to control individual hardware registers.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Dynamic Memory Management:&lt;/b&gt; Mastering &lt;code&gt;malloc&lt;/code&gt; and &lt;code&gt;free&lt;/code&gt; without causing system-crashing leaks.&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="text-align: justify;"&gt;Scaling Complexity: C++ and the Power of Object-Oriented Verification&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUj-bBSU7a6-A4DmQDeTmOBGhOIQFuCIh__mDe3QHnrWB6DtPLazfmCZYzg_Q3SYdg8mgc286ImSMd55gO2pitSdO1uXcNO_VnIm4CkR0sRwmVj3KsSM-Zw3kafXiZJoUB1mnOdHyklo8h6a3HbWu2J6Wviw2fEAX1mBa08hWRwD7dP9kln0h0pS5hy8D-/s1584/8051MT_15042026_5PgmingLanguages_Im03.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Scaling Complexity: C++ and the Power of Object-Oriented Verification" border="0" data-original-height="672" data-original-width="1584" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUj-bBSU7a6-A4DmQDeTmOBGhOIQFuCIh__mDe3QHnrWB6DtPLazfmCZYzg_Q3SYdg8mgc286ImSMd55gO2pitSdO1uXcNO_VnIm4CkR0sRwmVj3KsSM-Zw3kafXiZJoUB1mnOdHyklo8h6a3HbWu2J6Wviw2fEAX1mBa08hWRwD7dP9kln0h0pS5hy8D-/w320-h136/8051MT_15042026_5PgmingLanguages_Im03.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;As designs scale from simple microcontrollers to massive Systems-on-Chip (SoC), C’s procedural nature can become a liability. This is where C++ becomes your strategic advantage. By introducing Object-Oriented Programming (OOP)—classes, inheritance, and polymorphism—C++ allows engineers to build modular and reusable verification environments.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In the VLSI and ASIC worlds, C++ is the engine behind &lt;b&gt;SystemC&lt;/b&gt;, a high-level modeling framework. This allows for a critical industry trend known as &lt;b&gt;"shifting left"&lt;/b&gt;: simulating and verifying hardware behavior long before the first grain of silicon is even manufactured. By modeling hardware in C++, you can debug system architecture and even begin firmware development in parallel with hardware design, saving millions in development costs.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Coding the Silicon: Verilog and the Parallel Mindset&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72GvNvNxvZnVx03-eRe8IOS6CxJRSrAkdB8ol6GQWgeEBr5_FVn0pUmTy7rQ2FasdlIyTDeloT56uyBOsWlY9cIwD0q4hXHA2Rch2L9ckcMRZCWPlbXuU09cZhUSiDE3aPj5DMQ8Hw_Ufg1MJNQ6Wcbq7Fy5eGd2ijmNjWhV7qPWAOxCE6bTEolNIk3U1/s1584/8051MT_15042026_5PgmingLanguages_Im02.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Coding the Silicon: Verilog and the Parallel Mindset" border="0" data-original-height="672" data-original-width="1584" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72GvNvNxvZnVx03-eRe8IOS6CxJRSrAkdB8ol6GQWgeEBr5_FVn0pUmTy7rQ2FasdlIyTDeloT56uyBOsWlY9cIwD0q4hXHA2Rch2L9ckcMRZCWPlbXuU09cZhUSiDE3aPj5DMQ8Hw_Ufg1MJNQ6Wcbq7Fy5eGd2ijmNjWhV7qPWAOxCE6bTEolNIk3U1/w320-h136/8051MT_15042026_5PgmingLanguages_Im02.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;Verilog is fundamentally different from the other languages on this list because it isn't a programming language—it is a Hardware Description Language (HDL). The most significant hurdle for software-centric engineers is shifting from a sequential mindset to a &lt;b&gt;parallel mindset&lt;/b&gt;.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Think of it this way: a C program is a &lt;b&gt;recipe&lt;/b&gt; (a list of steps performed one after another). Verilog is a &lt;b&gt;blueprint&lt;/b&gt; (a description of a structure where every component exists and functions simultaneously). In Verilog, when a clock edge hits, thousands of gates flip at the exact same moment.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Strategic Applications of Verilog:&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Front-end VLSI Design:&lt;/b&gt; Writing the Register Transfer Level (RTL) code that defines the logic of modern processors.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;FPGA Programming:&lt;/b&gt; Using reconfigurable hardware to prototype designs or accelerate specific workloads.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Analog-Mixed Signal Integration:&lt;/b&gt; Bridging the gap between digital logic and analog circuitry—a high-growth niche for specialized engineers.&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="text-align: justify;"&gt;The Automation Architect: Leveraging Python for Rapid Prototyping&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-vSjxdN8GxWbRuk8-PbW4eC0rNZ68PoKMQwopi-qBwnuBMDWOScf2UcUbTHQDoGyawT4CwYxyhyphenhyphenozUt_96J-m_R7ys4TWOzfTOIaCDJbTan1SxHXXp82_HyNT8G7n94uBucSrzXHYeparpIM_1VWWE3u26Td83vcv6XBwR4RDeC7TkJTDSWuIrUaHCy3q/s1408/8051MT_15042026_5PgmingLanguages_Im04.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The Automation Architect: Leveraging Python for Rapid Prototyping" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-vSjxdN8GxWbRuk8-PbW4eC0rNZ68PoKMQwopi-qBwnuBMDWOScf2UcUbTHQDoGyawT4CwYxyhyphenhyphenozUt_96J-m_R7ys4TWOzfTOIaCDJbTan1SxHXXp82_HyNT8G7n94uBucSrzXHYeparpIM_1VWWE3u26Td83vcv6XBwR4RDeC7TkJTDSWuIrUaHCy3q/w320-h175/8051MT_15042026_5PgmingLanguages_Im04.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;If C is the scalpel of the electronics world, Python is the &lt;b&gt;Swiss Army Knife&lt;/b&gt;. You won't use it to write timing-critical firmware for a motor controller, but you will use it to survive the "lab bench to data sheet" pipeline.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Python is the ultimate bridge. It allows a senior engineer to automate an entire rack of test equipment—oscilloscopes, power supplies, and signal generators—via protocols like I2C, SPI, or UART using libraries like &lt;b&gt;pySerial&lt;/b&gt;. Instead of manually recording data, you write a script to sweep frequencies and log results directly into a CSV.&lt;/p&gt;&lt;ul&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;NumPy and Matplotlib:&lt;/b&gt; Use these to process raw sensor data and visualize performance bottlenecks instantly.&lt;/li&gt;&lt;li style="text-align: justify;"&gt;&lt;b&gt;Rapid Prototyping:&lt;/b&gt; Use MicroPython to quickly test a sensor's logic on an Arduino or Raspberry Pi before committing to a final C implementation.&lt;/li&gt;&lt;/ul&gt;&lt;h3 style="text-align: justify;"&gt;The Digital Laboratory: MATLAB for Signal and System Modeling&lt;/h3&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKDZoOy1eQqFnlXLbbskwfB9SapLlo3hPSShhUcJr2nVNoMdslyBi9D0JIuH9n-xesr7GvLO_7z38XoX_Ki7DKEKD3IjgGmww9XN_M-uYDc6WsYU60tV28D-RwPKWYqjkgsq-98JNOE6QHF8k-ieMuIA20mWOc1eOSjM5Ft_9szbP55NoofpWfui6TOmII/s1584/8051MT_15042026_5PgmingLanguages_Im06.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The Digital Laboratory: MATLAB for Signal and System Modeling" border="0" data-original-height="672" data-original-width="1584" height="136" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKDZoOy1eQqFnlXLbbskwfB9SapLlo3hPSShhUcJr2nVNoMdslyBi9D0JIuH9n-xesr7GvLO_7z38XoX_Ki7DKEKD3IjgGmww9XN_M-uYDc6WsYU60tV28D-RwPKWYqjkgsq-98JNOE6QHF8k-ieMuIA20mWOc1eOSjM5Ft_9szbP55NoofpWfui6TOmII/w320-h136/8051MT_15042026_5PgmingLanguages_Im06.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;In specialized fields like Digital Signal Processing (DSP) and Control Systems, MATLAB is the undisputed industry standard for mathematical rigor. It serves as a "Digital Laboratory" where you can simulate PID tuning, filter designs, or state-space analysis before a single component is soldered.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;The strategic value here is risk mitigation. By prototyping algorithms in MATLAB and Simulink, you verify the mathematical foundation of your system in a virtual environment. However, the true "Expert" insight is knowing that the translation—rewriting MATLAB’s high-level math into efficient C or Verilog—is where most projects fail. An engineer who can navigate both worlds is a rare and highly valued asset.&lt;/p&gt;&lt;h3 style="text-align: justify;"&gt;Conclusion: The Rise of the Interdisciplinary Engineer&lt;/h3&gt;&lt;p style="text-align: justify;"&gt;The era of the "siloed" engineer is over. The most successful professionals today are interdisciplinary; they "code with context." They don't just write a line of software; they understand how that code impacts the physical behavior, thermal envelope, and power consumption of the underlying hardware.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Mastering this stack—C for the foundation, C++ for scale, Verilog for the silicon, Python for the lab, and MATLAB for the math—equips you to lead in a market that rewards versatility.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;As we move into an era where AI is migrating from the cloud to the extreme edge, the industry is looking for architects, not just builders. Ask yourself: &lt;b&gt;In the coming decade, will you be the engineer who simply builds the circuit, or the architect who defines how that circuit thinks?&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9872; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3HFfuWybe5j464VAgSJvH0vWwxh55Zw3NC8BJPKzr8uWT2tp_aXDroRxCNNT7VgNbw9dEE6ovU08R-KfoGp9tq_QppUj25SG7yITDrAm5hm6WZSInuSG5pEci1sf_Iqfc9Q-m0JGnRbwzd3LqVIf54KFWUYvYcNMt4JCu55P24cbOhW6CTw4PjTVAi92F/s72-w320-h175-c/8051MT_15042026_5PgmingLanguages_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>High-Performance Intelligence: The Strategic Role of C++ in Machine Learning</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT08042026MLandCpp.html</link><category>Article</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Tue, 14 Apr 2026 16:27:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-2437281805612773614</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuge-5ynDpkTAaHZ6JOdw0YEt1y49xqHKG0LIxaOo0Oq26GPqTYP8ozbVtoWbgHagSN-ODWQ1qnIti0JfvLsumLO2zxLkklhgj2chNV4bxc_LD6ksv4Mh-_38N-htmLZV5kTMRQPJJ1UO5-1e17DdeptT2ljPZ4xg6kKnm6Yr7a1QrX0Q-oaOhVGZq9HkR/s1408/8051MT_08042026_MLandCpp_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="High-Performance Intelligence: The Strategic Role of C++ in Machine Learning" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuge-5ynDpkTAaHZ6JOdw0YEt1y49xqHKG0LIxaOo0Oq26GPqTYP8ozbVtoWbgHagSN-ODWQ1qnIti0JfvLsumLO2zxLkklhgj2chNV4bxc_LD6ksv4Mh-_38N-htmLZV5kTMRQPJJ1UO5-1e17DdeptT2ljPZ4xg6kKnm6Yr7a1QrX0Q-oaOhVGZq9HkR/w320-h175/8051MT_08042026_MLandCpp_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p style="text-align: justify;"&gt;In the rapidly evolving field of machine learning (ML), the choice of programming language is a critical decision that dictates the efficiency, scalability, and deployment success of a project. While Python is often celebrated for its simplicity and ease of use in research and prototyping, &lt;strong&gt;C++ serves as the essential foundation for high-performance, production-level ML solutions&lt;/strong&gt;. For developers and organizations where execution speed and hardware-level control are paramount, C++ is the industry standard.&lt;/p&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;The Performance Advantage: Speed and Control&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;The primary strength of C++ in the machine learning ecosystem lies in its compiled nature and &lt;strong&gt;efficient memory management&lt;/strong&gt;. Unlike high-level scripting languages, C++ provides programmers with a high degree of control over system resources and CPU usage.&lt;/p&gt;
&lt;ul&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Execution Speed:&lt;/strong&gt; C++ is preferred in scenarios where the execution speed of an ML algorithm is extremely significant, such as processing large-scale data in real-time.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Low-Level Optimization:&lt;/strong&gt; It allows for manual optimization and &lt;strong&gt;low-level hardware control&lt;/strong&gt;, making it possible to write hardware-level programs that higher-level languages cannot support.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Resource Efficiency:&lt;/strong&gt; Because of its direct memory management, C++ ensures that models run efficiently even on hardware with limited capabilities.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;Strategic Use Cases for C++ in ML&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;C++ is the language of choice for deploying machine learning models in environments where latency is unacceptable or resources are constrained.&lt;/p&gt;
&lt;ul&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Embedded Systems and IoT:&lt;/strong&gt; C++ is the definitive choice for implementing ML in embedded systems and the &lt;strong&gt;Internet of Things (IoT)&lt;/strong&gt;, ensuring models operate smoothly on specialized hardware.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Robotics and Autonomous Systems:&lt;/strong&gt; The language is widely used in &lt;strong&gt;robotic locomotion&lt;/strong&gt; and complex robotics projects that require real-time decision-making and precise sensor integration.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;High-Stakes Industries:&lt;/strong&gt; Beyond hardware, C++ powers performance-critical applications in &lt;strong&gt;cybersecurity, gaming, and finance&lt;/strong&gt;, where processing data with minimal latency is a competitive necessity.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;A Specialized ML Ecosystem&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;While C++ may lack the sheer volume of high-level libraries found in Python, it possesses a robust ecosystem of specialized tools and frameworks designed for performance-critical tasks. Key frameworks include:&lt;/p&gt;
&lt;ul&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;mlpack &amp;amp; Shogun:&lt;/strong&gt; Highly scalable collections of tools used for general-purpose machine learning, classification, and data visualization.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Deep Learning Powerhouses:&lt;/strong&gt; Frameworks such as &lt;strong&gt;caffe&lt;/strong&gt;, &lt;strong&gt;Torch&lt;/strong&gt;, and the &lt;strong&gt;Microsoft Cognitive Toolkit&lt;/strong&gt; offer the execution speed and scalability required for multi-layered neural networks.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Production Deployment:&lt;/strong&gt; Even major frameworks like &lt;strong&gt;TensorFlow&lt;/strong&gt; offer C++ APIs, allowing developers to optimize and deploy deep learning models originally built in other environments.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;The Power of the Hybrid Approach&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;In modern professional workflows, the choice is rarely "Python vs. C++," but rather how to use them together. A common industry practice involves using Python for rapid prototyping and algorithm research, then transitioning to &lt;strong&gt;C++ for high-performance implementations and production-ready systems&lt;/strong&gt;. Tools like &lt;strong&gt;Pybind11&lt;/strong&gt; allow these languages to be combined, where Python handles high-level logic while C++ manages the performance-heavy components.&lt;/p&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;For those seeking to push the boundaries of what is possible in machine learning—particularly in robotics, real-time systems, and embedded hardware—&lt;strong&gt;C++ remains an indispensable tool&lt;/strong&gt;. While it carries a steeper learning curve, the unmatched power, precision, and efficiency it provides make it the premier choice for the most demanding ML challenges of 2026 and beyond.&lt;/p&gt;&lt;span id="docs-internal-guid-3e29fbab-7fff-ca4e-b65e-7cfa0aa6378e"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9871999999999999; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuge-5ynDpkTAaHZ6JOdw0YEt1y49xqHKG0LIxaOo0Oq26GPqTYP8ozbVtoWbgHagSN-ODWQ1qnIti0JfvLsumLO2zxLkklhgj2chNV4bxc_LD6ksv4Mh-_38N-htmLZV5kTMRQPJJ1UO5-1e17DdeptT2ljPZ4xg6kKnm6Yr7a1QrX0Q-oaOhVGZq9HkR/s72-w320-h175-c/8051MT_08042026_MLandCpp_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>C++ and AI: The Engine Behind High-Performance Intelligence</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT08042026AIandCpp.html</link><category>Article</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Mon, 13 Apr 2026 16:24:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-5998665036937751962</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzR8kjf0IxGFwUv4wxa0vKqv9jrdZxUoqhIKhBXBtZ_4OOM6OhHg3-dR9S5WIV5jZAcgcvLo3ljjP-S8p2uvffDe-Vp5edgJuT-686W3qmyoGK7pkkFwIgJk5y587XYehYOeqHnMDthQgUjlz-IK1ka6RHCtDaGoqn4hfe-TQU0jzQlibF-YPYBl8uHcsL/s1408/8051MT_08042026_AIandCpp_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="C++ and AI: The Engine Behind High-Performance Intelligence" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzR8kjf0IxGFwUv4wxa0vKqv9jrdZxUoqhIKhBXBtZ_4OOM6OhHg3-dR9S5WIV5jZAcgcvLo3ljjP-S8p2uvffDe-Vp5edgJuT-686W3qmyoGK7pkkFwIgJk5y587XYehYOeqHnMDthQgUjlz-IK1ka6RHCtDaGoqn4hfe-TQU0jzQlibF-YPYBl8uHcsL/w320-h175/8051MT_08042026_AIandCpp_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p style="text-align: justify;"&gt;In the current technological landscape, while Python often dominates the conversation regarding AI research and prototyping, &lt;strong&gt;C++ remains the indispensable powerhouse for production-level artificial intelligence&lt;/strong&gt;. For projects where performance, efficiency, and hardware control are non-negotiable, C++ serves as the foundational language that translates complex algorithms into real-world applications.&lt;/p&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;The Performance Imperative&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;The primary allure of C++ in the AI sector is its &lt;strong&gt;unmatched execution speed and fine-grained control over system resources&lt;/strong&gt;. Unlike high-level languages that rely on automatic garbage collection, C++ allows developers to manage memory allocation and deallocation directly.&lt;/p&gt;
&lt;ul&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Low-Latency Execution:&lt;/strong&gt; C++ compiles directly into machine code, producing highly optimized executables essential for &lt;strong&gt;real-time AI systems&lt;/strong&gt; where every millisecond counts.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Computational Efficiency:&lt;/strong&gt; This efficiency is a "game-changer" for resource-intensive tasks such as &lt;strong&gt;deep learning&lt;/strong&gt;, where maximizing the raw processing capacity of a system is critical.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Deterministic Control:&lt;/strong&gt; In safety-critical environments like &lt;strong&gt;medical devices and automotive systems&lt;/strong&gt;, C++ allows for deterministic execution, ensuring that AI responses are predictable and reliable.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;Critical Applications: From Edge Devices to Robotics&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;C++ is the preferred choice for AI deployment in &lt;strong&gt;constrained environments and specialized industries&lt;/strong&gt;. Its ability to interface directly with hardware makes it the standard for:&lt;/p&gt;
&lt;ul&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Robotics and Autonomous Vehicles:&lt;/strong&gt; These systems require precise control over sensors and actuators, alongside real-time decision-making capabilities that C++ provides.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Computer Vision:&lt;/strong&gt; Leveraging libraries like &lt;strong&gt;OpenCV&lt;/strong&gt;, C++ powers the real-time image processing used in drones, industrial robotics, and facial detection.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;High-Frequency Trading:&lt;/strong&gt; The financial sector utilizes C++ for AI-driven trading algorithms where execution speed directly impacts profitability.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Edge Computing and IoT:&lt;/strong&gt; Because it requires minimal memory usage, C++ is ideal for deploying AI models on &lt;strong&gt;microcontrollers and edge devices&lt;/strong&gt; with limited resources.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;The Synergy of C++ and Python&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;A professional AI workflow often involves a &lt;strong&gt;hybrid approach&lt;/strong&gt;, leveraging the strengths of multiple languages. A common industry standard involves:&lt;/p&gt;
&lt;ol&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Training&lt;/strong&gt; the AI model in Python using frameworks like PyTorch or TensorFlow to benefit from rapid prototyping and a vast library ecosystem.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Exporting&lt;/strong&gt; the model using tools like &lt;strong&gt;ONNX&lt;/strong&gt;.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Deploying&lt;/strong&gt; and running the inference in a &lt;strong&gt;C++ environment&lt;/strong&gt; using &lt;strong&gt;LibTorch&lt;/strong&gt; or &lt;strong&gt;ONNX Runtime&lt;/strong&gt; to ensure maximum production speed and efficiency.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;A Robust Ecosystem of Libraries&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;The C++ AI landscape is supported by a collection of powerful, high-performance libraries that simplify complex development tasks. Key tools include:&lt;/p&gt;
&lt;ul&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;TensorFlow and PyTorch (LibTorch):&lt;/strong&gt; While widely known for their Python APIs, these frameworks use C++ as a high-performance backend.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Dlib and Shark:&lt;/strong&gt; These libraries provide robust frameworks for machine learning and computer vision.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Eigen:&lt;/strong&gt; An essential toolkit for linear algebra, providing the mathematical foundation for many AI algorithms.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;For developers and organizations focused on &lt;strong&gt;scalability, real-time processing, and resource optimization&lt;/strong&gt;, C++ is a strategic necessity. While it presents a steeper learning curve than its high-level counterparts, the power and precision it offers make it the definitive choice for the next generation of sophisticated, performance-driven AI solutions.&lt;/p&gt;&lt;span id="docs-internal-guid-3e29fbab-7fff-ca4e-b65e-7cfa0aa6378e"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9871999999999999; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzR8kjf0IxGFwUv4wxa0vKqv9jrdZxUoqhIKhBXBtZ_4OOM6OhHg3-dR9S5WIV5jZAcgcvLo3ljjP-S8p2uvffDe-Vp5edgJuT-686W3qmyoGK7pkkFwIgJk5y587XYehYOeqHnMDthQgUjlz-IK1ka6RHCtDaGoqn4hfe-TQU0jzQlibF-YPYBl8uHcsL/s72-w320-h175-c/8051MT_08042026_AIandCpp_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>The Power of C++: The Unwavering Standard for Professional Game Development</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT08042026GameDevelopmentCpp.html</link><category>Article</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sun, 12 Apr 2026 16:20:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-6396746485295745776</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFDj0QyOy4DZk1VSiRl6mXhQJBuOrSu4bQQfLsm4-5gj2AEj_8g3wobYMdnURLdTjlBMN1otYCuudjlCJnMqSXAVdqiqbFLmDX2O8MIJ7SZtZM9mHPw0RXbr_PO9RPshAkQd1NcxnWq4lnlO6DQtchf2d-BoPOSRbeixN8apdZNR1n5r08tqQauon64FE/s1408/8051MT_08042026_GameDevelopmentCpp_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The Power of C++: The Unwavering Standard for Professional Game Development" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFDj0QyOy4DZk1VSiRl6mXhQJBuOrSu4bQQfLsm4-5gj2AEj_8g3wobYMdnURLdTjlBMN1otYCuudjlCJnMqSXAVdqiqbFLmDX2O8MIJ7SZtZM9mHPw0RXbr_PO9RPshAkQd1NcxnWq4lnlO6DQtchf2d-BoPOSRbeixN8apdZNR1n5r08tqQauon64FE/w320-h175/8051MT_08042026_GameDevelopmentCpp_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p style="text-align: justify;"&gt;In the rapidly shifting landscape of software engineering, few technologies have maintained their dominance as consistently as C++. As we move through 2026, &lt;strong&gt;C++ remains the industry standard for high-performance and large-scale game projects&lt;/strong&gt;, serving as the primary choice for professional studios worldwide. For developers aiming to build at the cutting edge of the industry, understanding the critical role of C++ is essential.&lt;/p&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;Unmatched Performance and System Control&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;The primary reason C++ continues to power the most demanding video games "under the hood" is its ability to provide &lt;strong&gt;precise access to system memory and processing power&lt;/strong&gt;. Unlike higher-level languages, C++ allows for &lt;strong&gt;direct memory management&lt;/strong&gt;, which is crucial for optimizing the resource-heavy environments of modern gaming.&lt;/p&gt;
&lt;ul&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;High Execution Speed:&lt;/strong&gt; In a medium where frame-perfect performance is non-negotiable, the high execution speed of C++ ensures smooth gameplay and responsive mechanics.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Efficiency at Scale:&lt;/strong&gt; Large, complex games require the efficient memory management that only low-level control can provide.&lt;/li&gt;
&lt;li style="text-align: justify;"&gt;&lt;strong&gt;Platform Dominance:&lt;/strong&gt; C++ is the definitive &lt;strong&gt;go-to choice for development on consoles and PCs&lt;/strong&gt;, where maximizing hardware potential is the top priority.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;The Backbone of AAA Studios and Unreal Engine&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;Major game studios continue to rely on C++ because it supports the &lt;strong&gt;complex game mechanics and high-end graphics performance&lt;/strong&gt; expected by modern audiences. Perhaps its most significant footprint in the industry is its integration with &lt;strong&gt;Unreal Engine 5&lt;/strong&gt;, one of the most powerful tools for creating AAA titles. By leveraging C++, developers can push the boundaries of realistic movements and heavy-duty visuals that define the current generation of gaming.&lt;/p&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;C++ in the 2026 Landscape&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;While newer languages like Rust are gaining attention for their safety features and system-level performance, &lt;strong&gt;C++ continues to dominate the professional sector&lt;/strong&gt;. Its massive ecosystem and deep-rooted history in the industry make it an indispensable skill for any serious game developer. Furthermore, the demand for C++ expertise translates directly into career value, as it remains a &lt;strong&gt;highly valuable skill for high-paying technical roles&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 style="text-align: justify;"&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/h3&gt;
&lt;p style="text-align: justify;"&gt;For indie creators or those focusing on mobile platforms, languages like C# or Java offer excellent alternatives. however, when &lt;strong&gt;speed, control, and raw power are critical&lt;/strong&gt;, C++ is unrivaled. As long as players demand increasingly realistic graphics and seamless performance, C++ will remain the foundational pillar upon which the world's most iconic games are built.&lt;/p&gt;&lt;span id="docs-internal-guid-3e29fbab-7fff-ca4e-b65e-7cfa0aa6378e"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9871999999999999; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhFDj0QyOy4DZk1VSiRl6mXhQJBuOrSu4bQQfLsm4-5gj2AEj_8g3wobYMdnURLdTjlBMN1otYCuudjlCJnMqSXAVdqiqbFLmDX2O8MIJ7SZtZM9mHPw0RXbr_PO9RPshAkQd1NcxnWq4lnlO6DQtchf2d-BoPOSRbeixN8apdZNR1n5r08tqQauon64FE/s72-w320-h175-c/8051MT_08042026_GameDevelopmentCpp_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>The Invisible Engine: Why C++ Still Powers Your Digital World</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT08042026PopularCpp.html</link><category>Article</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sat, 11 Apr 2026 16:16:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-6267463081375639875</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsNwwEBIvIfIDC3uYUsU-VBLBBWz9cdQttnY8UwcForP5csgvP2xjKX6WsYkDy4Ya-z9a5P0Y4ciHkuaXl1rqTo_4TDrhMUtjdqD7LVPD4DDWyy2fdq8JdKTFZtJgFT-Xs8REYn59Xzl5V4SooP37R9-iEdmuJ1kLJF1gN_IvPKzEQqeY0ZLLLXXIIyzZ5/s1408/8051MT_08042026_PopularCpp_Im01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="The Invisible Engine: Why C++ Still Powers Your Digital World" border="0" data-original-height="768" data-original-width="1408" height="175" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsNwwEBIvIfIDC3uYUsU-VBLBBWz9cdQttnY8UwcForP5csgvP2xjKX6WsYkDy4Ya-z9a5P0Y4ciHkuaXl1rqTo_4TDrhMUtjdqD7LVPD4DDWyy2fdq8JdKTFZtJgFT-Xs8REYn59Xzl5V4SooP37R9-iEdmuJ1kLJF1gN_IvPKzEQqeY0ZLLLXXIIyzZ5/w320-h175/8051MT_08042026_PopularCpp_Im01.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="text-align: justify;"&gt;When a self-driving car’s braking system engages in milliseconds or a high-frequency trading platform executes a million-dollar transaction in the blink of an eye, you aren't seeing the user-friendly syntax of Python or the safety-first rails of Rust. You are seeing C++ in its element. Despite the constant chatter that C++ is an "ancient" or "obsolete" relic, it remains the undisputed foundational layer of the digital age.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;If modern, simplified languages are so popular, why does C++ stay at the top of the technical stack? The reality is that for the world’s most demanding applications, speed and control aren't just preferences—they are requirements. As a living powerhouse, C++ provides a level of power and precision that newer alternatives simply cannot match, compiling directly down to highly efficient machine code to squeeze every drop of performance out of the hardware.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Takeaway 1: The Invisible Backbone of Global Infrastructure&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;C++ is the hidden force driving the software that defines our daily lives, and its success is measured by its invisibility. It serves as the engine for massive operating systems like Microsoft Windows and industry-standard creative tools like Adobe Photoshop. When these applications run smoothly and respond instantly, it is because C++ is handling the heavy lifting under the hood.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Beyond the desktop, this language provides the necessary scalability for the world's most robust databases, including MySQL and MongoDB. It even powers the rendering engines of the web browsers you use every day, such as Chrome and Firefox. In high-performance software, the better the code works, the less the user notices it. C++ is so pervasive precisely because it allows developers to build infrastructure that is so efficient it becomes a seamless part of the user experience.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Takeaway 2: Why Frame-Perfect Gaming Demands C++&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In the gaming industry, C++ remains the undisputed king, and for good reason. Major studios like Epic Games, Rockstar, and Ubisoft rely on it to bring massive open worlds and hyper-realistic graphics to life. At the heart of this is the Unreal Engine—one of the most widely used game engines in existence—which is written in C++ to give developers the flexibility to fine-tune performance at a granular level.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In modern gaming, "frame-perfect performance" is the gold standard. Every millisecond saved in processing complex physics, AI systems, and 3D rendering pipelines directly translates to a more immersive experience for the player. While higher-level languages struggle with the overhead of automated memory management, C++ allows developers to push hardware to its absolute limit. It is the only choice when you need to balance the immense complexity of a AAA title with the raw speed required for fluid gameplay.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Takeaway 3: High-Stakes Precision in Finance and Robotics&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;In sectors where a single millisecond of latency can result in massive financial loss or a compromise in safety, C++ is the only viable option. High-frequency trading (HFT) systems utilize its ultra-low latency to gain a competitive edge in global markets, while the Robot Operating System (ROS) depends on it for the real-time control of complex robotic movements.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;This reliability extends into critical embedded systems within aerospace, medical devices, and automotive software. Whether it is a surgical robot or a flight control system, the low-level hardware control offered by C++ is non-negotiable. As the industry's bottom line often reminds us: "C++ isn't just an old language that refuses to die—it's a living, evolving powerhouse that underpins much of today's digital world." In these high-stakes environments, efficiency is the difference between success and failure.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Takeaway 4: The Modern Renaissance of a Classic Language&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;Contrary to the misconception that C++ is a static language stuck in the 1980s, it has undergone a significant modern renaissance. The release of standards like C++11, C++14, C++17, and C++20 has fundamentally transformed how developers interact with the language. By introducing features such as smart pointers, lambda expressions, and advanced concurrency tools, C++ has bridged the gap between raw power and modern productivity.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;This evolution means that today’s developers no longer have to sacrifice safety and cleanliness for speed. We have moved away from the "raw power" struggles of legacy code toward a more expressive, safer version of the language that retains its signature low-level hardware control. It is this unique ability to adapt—offering both high-level abstractions and machine-level precision—that ensures its continued dominance.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;b&gt;Conclusion: The Future of Power and Precision&lt;/b&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;C++ remains the tool of choice when speed, efficiency, and absolute control are non-negotiable. From the optimized backends of AI libraries like TensorFlow to the massive data pipelines that power our global economy, it delivers results where others fail. While newer languages offer a lower barrier to entry, they often sacrifice the raw performance required to build the most advanced reaches of technology.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;As we look toward a future defined by the next generation of AI, complex robotics, and self-driving car software, we face a fundamental choice. Are we willing to trade performance for the ease of newer languages, or will the "invisible engine" continue to be the only way to push the boundaries of what our hardware can truly achieve? For those building the future, the answer remains clear: C++ isn't going anywhere.&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-align: left; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list:&lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-align: left; text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt; click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.9871999999999999; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="background-color: transparent; color: black; font-family: Arial,sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsNwwEBIvIfIDC3uYUsU-VBLBBWz9cdQttnY8UwcForP5csgvP2xjKX6WsYkDy4Ya-z9a5P0Y4ciHkuaXl1rqTo_4TDrhMUtjdqD7LVPD4DDWyy2fdq8JdKTFZtJgFT-Xs8REYn59Xzl5V4SooP37R9-iEdmuJ1kLJF1gN_IvPKzEQqeY0ZLLLXXIIyzZ5/s72-w320-h175-c/8051MT_08042026_PopularCpp_Im01.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Write a program that sorts a given array of names.|| C Lab Program</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT16032026CLabPgmWAPF06.html</link><category>C_Q&amp;A</category><category>CCode</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Fri, 10 Apr 2026 18:07:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-3897873056005437883</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F06:&lt;/span&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; Write a C program that sorts a given array of names.|| Sorting and Searching&lt;/span&gt;&lt;/p&gt;&lt;span id="docs-internal-guid-081815d1-7fff-116a-f19e-7edb37a2f42a"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F06: C Lab Program&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="background-color: #f6f6ae; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;//Sorts a given array of names.&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;#include &amp;lt;string.h&amp;gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;main&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;() {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;char&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; names[50][50], temp[50];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; n, i, j;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Input number of names&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter number of names: "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Read names&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter %d names:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%s"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, names[i]);&amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Reads a single word as name&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Sorting names using simple string comparison&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n - 1; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (j = i + 1; j &amp;lt; n; j++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;strcmp&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(names[i], names[j]) &amp;gt; 0) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;strcpy&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(temp, names[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;strcpy&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(names[i], names[j]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;strcpy&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(names[j], temp);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Print sorted names&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"\nNames in alphabetical order:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%s\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, names[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; 0;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter number of names: 6&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter 6 names:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Vishnu&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Hanuman&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Shiva&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Krishna&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Rama&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Ganesha&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Names in alphabetical order:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Ganesha&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Hanuman&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Krishna&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Rama&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Shiva&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Vishnu&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list: &lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt;click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Write a program that sorts the given array of integers using insertion sort in ascending order || C Lab Program</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT16032026CLabPgmWAPF05.html</link><category>C_Q&amp;A</category><category>CCode</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Thu, 9 Apr 2026 18:05:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-4203192461172560395</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F05:&lt;/span&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; Write a C program that sorts the given array of integers using insertion sort in ascending order || Sorting and Searching&lt;/span&gt;&lt;/p&gt;&lt;span id="docs-internal-guid-6ae123c1-7fff-5bc3-9a44-734f4719538d"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F05: C Lab Program&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="background-color: #f6f6ae; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;//The given array of integers using insertion sort in ascending order.&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;main&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;() {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; arr[50], n, i;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;void&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;insertionSort&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; [], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; );&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Input number of elements&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter number of elements: "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Input array elements&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter %d integers:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;arr[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Call insertion sort function&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; insertionSort(arr, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Print sorted array&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Array sorted in ascending order:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, arr[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; 0;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Function to perform insertion sort in ascending order&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;void&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;insertionSort&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; arr[], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; n) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; i, key, j;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 1; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key = arr[i];&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Element to insert&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j = i - 1;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Shift elements that are greater than key&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;while&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (j &amp;gt;= 0 &amp;amp;&amp;amp; arr[j] &amp;gt; key) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arr[j + 1] = arr[j];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j--;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Insert key at correct location&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arr[j + 1] = key;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter number of elements: 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter 9 integers:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;4 5 6 1 7 2 8 3 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Array sorted in ascending order:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;1 2 3 4 5 6 7 8 9&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list: &lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt;click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Write a program that sorts the given array of integers using selection sort in descending order. || C Lab Program</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT16032026CLabPgmWAPF04.html</link><category>C_Q&amp;A</category><category>CCode</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Wed, 8 Apr 2026 18:03:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-3164956598432486794</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F04:&lt;/span&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; Write a C program that sorts the given array of integers using selection sort in descending order..|| Sorting and Searching&lt;/span&gt;&lt;/p&gt;&lt;span id="docs-internal-guid-d7b4e2ad-7fff-ab10-2b0a-5968569b2ab9"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F04: C Lab Program&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="background-color: #f6f6ae; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;//The given array of integers using selection sort in descending order.&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;main&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;() {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; arr[50], n, i;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;void&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;selectionSortDescending&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; [], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; );&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Input number of elements&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter number of elements: "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Input array elements&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter %d integers:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;arr[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Call function&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; selectionSortDescending(arr, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Output sorted array&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Array sorted in descending order:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, arr[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; 0;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Function to perform selection sort in descending order&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;void&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;selectionSortDescending&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; arr[], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; n) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; i, j, maxIndex, temp;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n - 1; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxIndex = i;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Assume current index is the largest&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Find the actual largest element in the remaining array&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (j = i + 1; j &amp;lt; n; j++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (arr[j] &amp;gt; arr[maxIndex]) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxIndex = j;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Swap if needed&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (maxIndex != i) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp = arr[i];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arr[i] = arr[maxIndex];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arr[maxIndex] = temp;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter number of elements: 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter 9 integers:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;4 5 6 1 7 2 8 3 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Array sorted in descending order:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;9 8 7 6 5 4 3 2 1&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list: &lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt;click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Write a program that implements the Bubble sort method to sort a given list of integers in ascending order. || C Lab Program</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT16032026CLabPgmWAPF03.html</link><category>C_Q&amp;A</category><category>CCode</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Tue, 7 Apr 2026 18:00:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-6564282150629000988</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F03:&lt;/span&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; Write a C program that implements the Bubble sort method to sort a given list of integers in ascending order.|| Sorting and Searching&lt;/span&gt;&lt;/p&gt;&lt;span id="docs-internal-guid-3c7746bf-7fff-c3b6-5cf2-853aec352f12"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F03: C Lab Program&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="background-color: #f6f6ae; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;//The Bubble sort method to sort a given list of integers in ascending order.&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;main&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;() {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; arr[50], n, i;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;void&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;bubbleSort&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; [], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; );&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Input number of elements&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter number of elements: "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Input elements&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter %d integers:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;arr[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Call bubble sort function&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; bubbleSort(arr, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Print sorted array&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Sorted list in ascending order:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, arr[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; 0;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Bubble sort function&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;void&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;bubbleSort&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; arr[], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; n) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; i, j, temp;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n - 1; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (j = 0; j &amp;lt; n - 1 - i; j++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (arr[j] &amp;gt; arr[j + 1]) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Swap elements&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp = arr[j];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arr[j] = arr[j + 1];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arr[j + 1] = temp;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter number of elements: 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter 9 integers:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;4 5 6 1 7 2 8 3 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Sorted &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;list&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; in ascending order:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;1 2 3 4 5 6 7 8 9&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list: &lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt;click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Write a program that uses non-recursive function to search for a Key value in a given sorted list of integers using binary search method. || C Lab Program</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT16032026CLabPgmWAPF02.html</link><category>C_Q&amp;A</category><category>CCode</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Mon, 6 Apr 2026 17:59:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-641970998433486346</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F02:&lt;/span&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; Write a C program that uses a non-recursive function to search for a Key value in a given sorted list of integers using binary search method.|| Sorting and Searching&lt;/span&gt;&lt;/p&gt;&lt;span id="docs-internal-guid-40021690-7fff-24e0-ecea-21a1c531f260"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F02: C Lab Program&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="background-color: #f6f6ae; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;//A non-recursive function to search for a Key value in a given sorted list of integers using binary search method.&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;main&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;() {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; n, i, key, arr[20];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;binarySearch&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; [], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; , &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; );&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter number of elements: "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter %d sorted integers:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;arr[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter key to search: "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;key);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; result = binarySearch(arr, n, key);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (result == -1)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Key %d not found in the list.\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, key);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;else&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Key %d found at position %d (index %d).\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, key, result + 1, result);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; 0;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Iterative (non-recursive) binary search function&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;binarySearch&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; arr[], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; n, &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; key) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; low = 0, high = n - 1;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;while&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (low &amp;lt;= high) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; mid = (low + high) / 2;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (arr[mid] == key)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; mid;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// key found&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;else&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (arr[mid] &amp;lt; key)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; low = mid + 1; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// search in right half&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;else&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; high = mid - 1;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// search in left half&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; -1; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// key not found&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter number of elements: 10&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter 10 sorted integers:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;0 1 2 3 4 5 6 7 8 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter key to search: 8&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Key 8 found at position 9 (index 8)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list: &lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt;click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Write a program that uses non-recursive function to search for a Key value in a given list of integers using linear search method. || C Lab Program</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT16032026CLabPgmWAPF01.html</link><category>C_Q&amp;A</category><category>CCode</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sun, 5 Apr 2026 17:56:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-2398536960825430703</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F01:&lt;/span&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; Write a C program that uses non-recursive function to search for a Key value in a given list of integers using linear search method.|| Sorting and Searching&lt;/span&gt;&lt;/p&gt;&lt;span id="docs-internal-guid-b93e574b-7fff-5759-ead9-8af38d61a2d6"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_F01: C Lab Program&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="background-color: #f6f6ae; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;//A non-recursive function to search for a Key value in a given list of integers using linear search method.&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;main&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;() {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; n, i, key, arr[20];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;linearSearch&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; [], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; , &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; );&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter number of elements: "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter %d integers:\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, n);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (i = 0; i &amp;lt; n; i++) {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;arr[i]);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter key to search: "&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%d"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, &amp;amp;key);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; result = linearSearch(arr, n, key);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (result == -1)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Key %d not found in the list.\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, key);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;else&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Key %d found at position %d (index %d).\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, key, result + 1, result);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; 0;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// Function to perform linear search (non-recursive)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;linearSearch&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; arr[], &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; n, &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; key) &lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;{&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; i;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; i = 0; i &amp;lt; n; i++) &lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; (arr[i] == key)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; i; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// return index if key is found&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; -1; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// key not found&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter number of elements: 10&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter 10 integers:&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;4 5 6 7 8 9 1 2 3 0&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter key to search: 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Key 9 found at position 6 (index 5)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list: &lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt;click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Write a program to count the lines, words and characters in a given text. || C Lab Program</title><link>http://8051microcontrollertutorial.blogspot.com/2026/04/8051MT16032026CLabPgmWAPE05.html</link><category>C_Q&amp;A</category><category>CCode</category><author>noreply@blogger.com (belgaumboy)</author><pubDate>Sat, 4 Apr 2026 17:29:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-4851956796326782150.post-4307176391415212445</guid><description>&lt;p&gt;&amp;nbsp;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_E05:&lt;/span&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; Write a C program to count the lines, words and characters in a given text.|| Strings&lt;/span&gt;&lt;/p&gt;&lt;span id="docs-internal-guid-bdd4e9c7-7fff-11eb-1c2e-52074e4762ce"&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;WAP_E05: C Lab Program&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="background-color: #f6f6ae; overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;//to count the lines, words and characters in a given text.&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;main&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;() {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// declare variables&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;char&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; str[200];&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; line, word, ch;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// initialize count variables with zero&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; line = word =1; ch = 0;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// read multiline string&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Enter string terminated with ~ :\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;scanf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"%[^~]"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, str);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;for&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;int&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; i=0; str[i]!=&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;'\0'&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;; i++)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// if it is new line then&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// one line and one word completed&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(str[i]==&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;'\n'&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; line++;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; word++;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;else&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;if&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(str[i]==&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;' '&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;||str[i]==&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;'\t'&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;)&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; word++;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;else&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ch++;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #e60415; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;// display count values&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"\nCharacter counts = %d\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, ch);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Word counts = %d\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, word);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;printf&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;(&lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;"Line counts = %d\n"&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;, line);&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color: #005599; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;return&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; 0;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 700; vertical-align: baseline; white-space-collapse: preserve;"&gt;OUTPUT&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div align="left" dir="ltr" style="margin-left: 0pt;"&gt;&lt;table style="border-collapse: collapse; border: none;"&gt;&lt;colgroup&gt;&lt;/colgroup&gt;&lt;tbody&gt;&lt;tr style="height: 0pt;"&gt;&lt;td style="overflow-wrap: break-word; overflow: hidden; padding: 5pt 5pt 5pt 5pt; vertical-align: top;"&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Enter &lt;/span&gt;&lt;span style="color: #2c009f; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;string&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt; terminated with ~ :&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Hello Guest&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;I am studyglance&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;A Fully loaded Notebook!~&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Character counts = 45&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Word counts = 9&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3e5915; font-family: Consolas, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;Line counts = 3&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;For all 2026 published articles list: &lt;/span&gt;&lt;a href="https://8051microcontrollertutorial.blogspot.com/2026/01/8051MT01022026PublishedArticlesIndexPage.html" style="text-decoration-line: none;"&gt;&lt;span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"&gt;click here&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p dir="ltr" style="line-height: 1.656; margin-bottom: 12pt; margin-top: 12pt; text-align: right;"&gt;&lt;span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"&gt;...till the next post, bye-bye &amp;amp; take care&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>