C and C++ programming
190 articles. C and C++ programs, pointers, arrays, storage classes and language concepts with code. Showing 1–100.
C and C++ programming articles (1–100)
- What Is Data Type in C: Types and ExamplesIf you’re starting your journey into C programming, one of the first things you’ll encounter is the concept of data types. It might seem like a…
- C Program to Add Two Numbers: Input & Output ExampleLearn how to write a simple C program that takes two numbers as input and displays their sum as output, perfect for beginners.
- Arrays in C Programming: Syntax, Types & OperationsUnderstand arrays in C with detailed explanation of types, declaration, initialization, accessing elements, common operations, and practical use…
- What Is Armstrong Number: Definition and C ProgramIf you've been exploring C programming, chances are you've come across something called an Armstrong Number. Sounds fancy, right? But don’t worry…
- Nested If Statements in C with ExamplesControl structures in programming languages like C are crucial for guiding the flow of execution. One of the most frequently used decision-making…
- 32 Important Keywords in C LanguageDiscover all 32 keywords in C language with definitions, categories, and examples.
- Switch Case Example in C with Menu-Driven ProgramUnderstand C switch case statements with detailed syntax, code examples, and use cases. Simplify multi-condition checks using structured switch logic.
- Master File Handling in C | Examples & Code SnippetsMaster file handling in C with hands-on code examples. Learn how to perform file read, write, and close operations using C functions efficiently.
- Print Hello World in C – Complete Beginner’s Guide with Code & ExamplesLearn how to print Hello World in C with step-by-step guidance, code examples, and best practices.
- Swap Two Numbers in C: With and Without Temporary VariableFind out how to swap numbers in C using two approaches: with a temporary variable or without. Step-by-step guide with code examples and full…
- Prime Number Program in C++Prime numbers are a key concept in both mathematics and computer science. Whether you’re gearing up for coding interviews, diving into competitive…
- C++ Type Conversion: Implicit vs Explicit with ExamplesUnderstand C++ type conversion with clear examples of implicit and explicit casting, including syntax and use cases for each method.
- C Odd or Even Program Explained with Logic & ExamplesMaster the Odd or Even number program in C. Explore logic, bitwise tricks, ternary and function-based code with practical examples and applications.
- Understanding Abstraction in C++ with ExamplesMaster abstraction in C++ with real-world examples. Learn its types, implementation using classes, and benefits in writing clean, secure, modular…
- Star Pattern in C with Code ExamplesMaster star pattern programs in C with step-by-step code examples. Learn to print triangles, pyramids, diamonds, and hollow patterns using nested…
- Multidimensional Array in C – Syntax, Examples & Real-Life ApplicationsLearn multidimensional arrays in C with syntax, 2D & 3D examples, memory layout, matrix operations, and real-life applications.
- Difference Between While and Do While Loop in CIn the world of C programming, loops are essential for controlling the flow of execution and managing repetitive tasks efficiently. Among the most…
- Master If Else in C Programming with Real ExamplesLearn if else in C programming with clear syntax, real-world examples, best practices, and hands-on guidance from Uncodemy’s C course in Noida.
- Simple C Programs for Absolute Programming BeginnersStart learning C with these simple and clear programs. Perfect for absolute beginners to understand basic syntax, logic, and output flow.
- What Is Constant in C? Learn Types & Usage in C CodeUnderstand what constants are in C programming, their types, uses, and best practices. Boost code clarity with const and #define in real-world…
- C Input and Output Functions Explained for BeginnersMaster input and output functions in C, from printf to file I/O. Learn with clear examples and best practices to build interactive, reliable C…
- Simple Calculator in C for Beginners: Complete GuideExplore how to build a calculator in C. Master basics like input handling, arithmetic logic, flow control, and user interface design with this…
- Storage Classes in C: Types and UsesUnderstanding storage classes in C is crucial for crafting efficient, maintainable, and bug-free programs. These storage classes play a key role…
- C Programming Language: Timeline, Growth & LegacyDive into the evolution of C programming from its origin at Bell Labs to its impact on modern languages like Java and Python.
- While Loop in C – Syntax, Examples, Flowchart & Best PracticesLearn the while loop in C with syntax, flowchart, examples, real-life use cases, and best practices.
- C++ Array: Declaration and UsageIn the world of programming, efficiency and structure matter. When you’re working with large amounts of related data, especially in C++, you’ll…
- Pointer Arithmetic in C with ExamplesPointers are one of the standout features of the C programming language. They give you direct access to memory, which makes C both powerful and…
- Function Overriding in C++ with Examples & Syntax GuideMaster function overriding in C++ with syntax, examples, and key rules. Discover how runtime polymorphism powers clean and scalable…
- Nested Structure in C Programming Explained with ExamplesImagine managing a student database where each student has their personal info, academic details, and contact information. You could create…
- Basic C Programs for Beginners: 10 Easy ExamplesStart coding with 10 basic C programs for beginners. Learn core concepts through simple, practical examples with clear explanations and outputs.
- Function Prototype in C: Syntax, Importance, and Best PracticesLearn what a function prototype in C is, why it's essential, and how to use it effectively.
- Matrix Multiplication in C++ Explained with Code and ExamplesMatrix multiplication is one of those core programming tasks that every developer, data scientist, and engineering student must understand.…
- Understanding the getch Function in CIn the world of C programming, user input and screen control are often crucial elements. Whether you are writing a basic console application or…
- Patterns in C Programming with CodePatterns in C programming include the creation of some visual pattern in the program and principles of pattern include the use of looping…
- What Is Strong Number? Explanation and ProgramIn the realm of number theory and basic programming, some numbers have unique characteristics that really make them shine. One such number is…
- Self Referential Structure in C Explained with ExamplesEver wondered how complex data structures like linked lists, trees, or graphs are implemented in C? The answer lies in a unique and powerful…
- Factorial in C Program with Iterative and Recursive MethodsMaster factorial programs in C with detailed examples using loops, recursion, arrays, and functions. Learn real-life use cases and logic…
- Do While Loop in C – Examples & Dry Run ExplainedUnderstand how the do while loop works in C programming. Get practical code examples and dry run analysis to improve your C coding skills.
- Master Matrix Transpose in C: Code & GuideWant to transpose a matrix in C? Our guide gives you the complete code and step-by-step explanation to master this fundamental C programming concept.
- Star Pattern in C with Code SamplesExplore easy C pattern programs with code examples for triangles, stars, numbers & pyramids. Ideal for beginners, interviews, and coding practice.
- What Is String in C? Basics & Examples Explained ClearlyLearn what a string is in C programming with clear explanations and practical examples. Ideal for beginners and coding interview preparation.
- C Programming: Learn Switch Statement with ExamplesMaster the switch statement in C with syntax, examples, and tips. Perfect for beginners learning control flow in C programming through real-world…
- C Program to Swap Two Numbers: All Methods CoveredExplore multiple ways to swap two numbers in C, including using a temporary variable, arithmetic operations, and without temp variable.
- Master Global Variables in C: Scope, Use & PitfallsUnderstand global variables in C, their lifetime, scope, and usage across files. Explore practical tips and code examples for beginner-friendly…
- C++ Hello World Program for Beginners With ExamplesStart your C++ journey with the Hello World program. This beginner-friendly guide explains setup, syntax, and structure for students learning C++…
- Keywords in C Programming with List and ExplanationUnderstand C keywords with real examples. Covers syntax, types, and purpose of each C keyword, including data types, loops, conditions, and memory…
- Palindrome in C: Multiple Code Implementations ExplainedLearn to check palindromes in C with multiple code implementations: iterative, recursive, and string reversal methods for both numbers and strings.
- For Loop Flowchart in C Explained | Syntax, Diagram & ExamplesLearn how a for loop works in C with flowchart diagrams, syntax breakdowns, real-world examples, and common mistakes to avoid.
- C Program to Reverse a String: Code & ExplanationMaster string reversal in C with clear code examples and step-by-step explanations. Perfect guide for understanding string manipulation in C…
- Inheritance in C++: Types and Syntax Explained with ExamplesIntroduction Inheritance is a fundamental concept in object-oriented programming (OOP), and C++ fully supports this feature. It allows a class…
- Calculate Age in C with Date Logic & Input HandlingMaster age calculation in C programming with examples. Understand date comparisons, leap years, and input validation for reliable, user-friendly…
- Learn Pyramid Patterns in C Programming | Easy GuideMaster pyramid patterns in C programming with simple loops and logic. Boost your coding skills and understand fundamental concepts easily and…
- C String Programs with ExamplesExplore a complete guide to string programs in C, from basic declaration and initialization to advanced manipulation, searching, and performance…
- Derived Data Types in C ProgrammingIt is estimated that derived data types are formed by a combination of primitive data types and other derived data types in order to retrieve…
- C++ Map: Syntax, Features & Real-Life Use CasesA complete guide to C++ Map covering syntax, real-world use cases, and best practices. Learn how to leverage maps for efficient coding in C++.
- Nested For Loop in C: Syntax, Examples & Best PracticesLearn how to use nested for loops in C with syntax, control flow, and real-world examples like pattern printing, matrix traversal, and pairwise…
- Who Invented C Language? History, Uses & EvolutionExplore the history and development of C language. Learn who invented it, why it was created, and how it shaped modern computing and system…
- Understanding Format Specifier of Double in CIf you're someone who's just beginning to learn C programming, you might have already come across printf() and scanf(). These two functions help…
- Binary to Decimal Conversion in C with Code ExamplesExplore 3 ways to convert binary to decimal in C. Includes logic, code, validation, and bitwise methods. Ideal for students, interview prep, or…
- Master Switch Case in C: Clean & Efficient Code ControlUnderstand switch case statements in C for better coding logic. From menus to math operations, learn how to simplify decisions and avoid common…
- Nested If Statement in C with Code Examples & Best PracticesLearn how to use nested if statements in C programming for multi-level decision-making.
- C Program for Matrix Multiplication: Code & ExplanationGrasp matrix multiplication in C with clear code examples, a thorough explanation, and output to make learning easier.
- Star Pattern Programs in C and Python with OutputMaster C++ and Python star pattern programs like pyramid, inverted triangle & diamond. Includes code, output, and logic to boost your programming…
- What Is C Programming Language? OverviewThe C programming language is one of the most important and influential languages in the history of computer science. Renowned for its power…
- Char to Int Conversion in C, C++, Java & PythonThe ability to convert a character into its integer equivalent forms a basic part of most programming languages and this is a necessary operation…
- Type Conversion in C with ExamplesUnderstand type conversion in C programming with clear examples. Learn the differences between implicit and explicit type conversion (type casting).
- Types of Polymorphism in C plus plusC++ polymorphism enables objects to be in multiple ways, so that a single function or operator can be used differently depending on the situation.…
- Understanding Goto Statement in C: Syntax & ExamplesExplore the goto statement in C programming: syntax, practical examples, when to use it, and best practices to write clean, efficient, and…
- C Switch Statement: Syntax, Flowchart & Practical ExamplesMaster the C switch statement with clear syntax, flowchart visualization, and practical examples like menu-driven programs and simple calculators.
- Master Scanf Syntax in C Programming | Input-Output GuideUnderstand scanf function in C programming, its syntax, and format specifiers. Learn how to handle user input and create dynamic, interactive…
- BFS Code in C LanguageBreadth-First Search (BFS) is a basic graph-searching algorithm whose search proceeds in a breadth-first fashion, searching first in all nodes on…
- Reverse String Program in C and PythonReversing a string is one of those classic exercises in programming that every beginner encounters. It’s a great way to get a grip on essential…
- Adding Two Numbers in C: Simple ProgramProgramming may seem intimidating at first glance, especially when you’re new to it. There are unfamiliar keywords, a screen full of curly braces…
- Break Statement in C – Syntax, Examples, and Best PracticesMaster the break statement in C with syntax, loop & switch examples, practical uses, and common mistakes to avoid.
- Calculator Program in C with Code Examples and Logic ExplanationLearn how to build a calculator program in C using switch, if-else, loops, and functions.
- Malloc Syntax in C with Examples
- Master Switch Case in C Programming with Easy ExamplesLearn how to use switch case in C programming for clean, efficient code. Understand syntax, use cases, common mistakes, and real-world applications.
- Learn C++ Easily with Real Code Examples & PracticeBoost your C++ skills with real-world code examples. Learn syntax, logic, and key concepts through step-by-step programming examples for beginners.
- Master Fibonacci Series in C++ with Real Code ExamplesExplore Fibonacci series in C++ using iterative, recursive, DP & matrix methods. Learn algorithm design, optimization & practical coding with…
- Struct Array in C: Declaration and UsageWhen you begin your journey in C programming, you learn how to store data using variables, arrays, and structures. Arrays are great when dealing…
- Switch Case in C: Syntax, Flowchart & Code GuideUnderstand switch case in C with syntax rules, flowchart explanation, and practical code examples. Perfect for beginners and C learners.
- Build a Basic Calculator in C: Step-by-Step Guide for BeginnersLearn to build a basic calculator in C with input/output, conditional logic, and loops.
- C Programming: For Loop Syntax and Use CasesUnderstand the structure and usage of for loops in C programming. This guide includes syntax, practical examples, and loop control tips for learners.
- Do While Loop Flowchart and ExplanationUnderstand the Do While loop with real-world examples, flowchart logic, syntax in C/Java, Python simulation, mistakes to avoid, and interview…
- Do While Loop in C – Syntax, Flowchart & Use CasesExplore the do while loop in C programming with syntax, flowchart, real-life examples, and beginner-friendly tips to master control flow logic…
- Hello World Program: Multiple LanguagesThe "Hello World" program is typically the first piece of code that newcomers write when diving into a new programming language. It's a…
- Know the Father of C Language & His Impact on TechExplore the story of Dennis Ritchie, the father of C. See how his innovations shaped software development, UNIX, and modern programming.
- Pyramid Program in C LanguageC Program to draw a Pyramid Pyramid Program in C Language is a program in which various patterns are made with the help of characters such as…
- C Unary Operators Explained with Code ExamplesUnderstand the use of unary operators in C programming. Explore increment, decrement, logical, and bitwise NOT with clear examples and syntax.
- Ternary Operator in C Syntax Use Case and Code SampleExplore the ternary operator in C, a compact alternative to if-else. Understand syntax, applications, and examples for efficient C programming.
- Decimal to Binary in C Conversion Program with ExplanationThe key to computer science is to know how to convert decimal numbers to binary as it is important to know how a computer processes and stores…
- Null Pointer in C and C++: Meaning and UsageIn the realm of C and C++ programming, the idea of pointers often fascinates, confuses, and challenges newcomers all at once. Pointers are…
- Precedence Table in C Language Explained🧠 Introduction: Why Operator Precedence Matters
- Mastering If Statements in C: Syntax & ExamplesLearn how to use if statements in C programming with clear syntax and practical examples. Enhance your coding skills today!.
- Write Fibonacci Series Program in C with Real ExamplesMaster writing a program to print the Fibonacci series in C. Explore iterative, recursive, and dynamic methods with examples and algorithmic insights.
- C While vs Do-While Loop | Syntax, Usage & ExamplesUnderstand the difference between while and do-while loops in C. Learn structure, use cases, and examples to write efficient and logical C code.
- Reference Variable in C++ – Complete Guide with Examples and Best PracticesLearn all about reference variables in C++ with this complete guide. Understand the syntax, declaration, memory management, function parameters.
- Best C Language Learning Apps for BeginnersFind the top-rated apps to learn C programming for beginners and students. Practice coding, get tutorials, and build skills on the go.
- C Define Directive: Syntax, Macros & Use CasesMaster the define directive in C with syntax, types, and examples. Learn how to write cleaner, efficient code using constants and function-like…
- While Loop in C with Syntax, Flowchart & ExamplesLearn how the while loop works in C programming. Includes syntax, flowchart, and practical examples to help you understand loop logic clearly.
Browse by topic
All topics- C and C++ programming190 articles · C and C++ programs, pointers, arrays, storage classes and language concepts with code.
- Python programming113 articles · Python programs, syntax, libraries and beginner projects with examples.
- Java programming22 articles · Core Java, OOP, collections, Spring and Java programs explained step by step.
- Data structures and algorithms129 articles · Arrays, linked lists, trees, graphs, sorting, searching and problem solving.
- Web and app development149 articles · HTML, CSS, JavaScript, React, Node, PHP, full stack and mobile app guides.
- Data science and machine learning127 articles · Statistics, Pandas, NumPy, machine learning, deep learning and big data.
- Artificial intelligence and generative AI371 articles · AI concepts, LLMs, prompt engineering, NLP, AI agents and AI tools.
- Data analytics, Excel and Power BI67 articles · Excel, Power BI, Tableau, dashboards and business analytics guides.
- SQL and databases59 articles · SQL queries, MySQL, PostgreSQL, MongoDB and database design with examples.
- Software testing and automation48 articles · Manual testing, Selenium, Playwright, API testing and QA practices.
- Cloud computing and DevOps38 articles · AWS, Azure, Docker, Kubernetes, Git, Jenkins, CI/CD and Linux.
- Cyber security and networking37 articles · Ethical hacking, network security, threats and networking basics.
- Digital marketing and SEO28 articles · SEO, social media, ads, content and email marketing guides.
- UI/UX and graphic design18 articles · UI/UX design, Figma, graphic design tools and portfolios.
- Business, management and finance18 articles · Management, HR, CRM, SAP, project management, accounting and finance.
- Careers, courses and job switches516 articles · Career roadmaps, salaries, course fees, city guides and career switch plans.
- Interview preparation and resumes100 articles · Interview questions, resume tips and how to get job ready.
- Programming basics and technology154 articles · Programming concepts, computer basics, new technology and tech trends.
Learn it with a trainer, not just a blog
Join a free 2-hour live demo class at Uncodemy, classroom or online from Noida. No payment, no commitment.