Programming Languages

215 articles in this topic

Unions in C: Syntax, Shared Memory and Worked Examples

A C union reuses one storage region for alternative member types, while a separate enum tag keeps each payload read consistent. Safe member switching prevents stale reads, layout mistakes, and character-array errors.

Updated 15 Sep 20265 min readC

Loops in Java Tutorial: for, while, do-while and Worked Examples

Build one reliable control-flow model for every Java loop. Trace runnable examples, avoid boundary and update errors, and practise counting executions.

Updated 15 Sep 20266 min readJava

Python Classes and Objects Tutorial: Build a Student Model Step by Step

Build one Student class, create independent objects, and trace every value. The examples show how constructors, methods, and attribute lookup work in Python.

Updated 15 Sep 20265 min readPython

Kotlin Tutorial for Beginners: Build a Null-Safe Study Tracker

Learn core Kotlin by building one console project with nullable values, a data class, small functions and a collection pipeline whose output you can verify.

Updated 14 Sep 20265 min readProgramming Languages Survey

C++ Composition vs Inheritance: Choose the Stable Relationship

Follow one C++ notification design from eight combination subclasses to three replaceable policies. The worked trace shows exactly where inheritance still fits.

Updated 14 Sep 20266 min readC++

Enums and Typedef in C: Syntax, Worked Examples, and Common Errors

Learn how C enums name integer states and typedef aliases existing types. Trace two complete programs, then avoid collisions, hidden pointers, invalid values, and size assumptions.

Updated 14 Sep 20266 min read62 viewsC

Conditionals in Java: if, else if, switch and Worked Examples

Learn Java conditionals by tracing one student-result program from its inputs to its grade, eligibility, scholarship and lab-day outputs.

Updated 14 Sep 20266 min readJava

Python Tokens, Variables, Data Types and I/O: Worked Examples from Input to Output

Trace one Python program from keyboard text through name binding, numeric conversion, a Boolean decision and formatted output, then test the common traps.

Updated 14 Sep 20265 min readPython

Kotlin Learning Roadmap: A 12-Week Path from JVM Basics to Coroutines

Follow one study-tracker project from a Kotlin console program to tested domain logic, structured coroutines and a focused application demo.

Updated 13 Sep 20265 min readProgramming Languages Survey

C++ Lambda Expressions: Capture Rules, Closures and STL Patterns

Learn to read C++ lambdas, trace copied and referenced state, write a valid sort comparator, and prevent dangling-reference bugs in stored callbacks.

Updated 13 Sep 20265 min readC++

Double Pointers in C: Memory Model, Syntax, and Worked Examples

Understand what every level of an int ** means, when a function needs one, and why arrays of pointers differ from 2D arrays. Runnable C17 examples make each step concrete.

Updated 13 Sep 20266 min read51 viewsC

Variables and Primitive Types in Java: Declarations, Conversions and Worked Examples

Learn how Java declares variables, represents all eight primitive types, promotes operands and handles casts. Then trace a complete program and correct common output traps.

Updated 12 Sep 20266 min readJava