Tagged articles
4 articles
Page 1 of 1
Lisa Notes
Lisa Notes
Mar 23, 2026 · Fundamentals

Master Java Loop Statements: From Basics to Practical Examples

This article explains Java's loop constructs—including while, do‑while, for, nested loops, foreach, and bubble‑sort implementations—through detailed syntax descriptions, step‑by‑step execution processes, and multiple concrete code examples with expected outputs.

Loop Statementsbubble sortdo-while
0 likes · 16 min read
Master Java Loop Statements: From Basics to Practical Examples
php Courses
php Courses
Jul 15, 2025 · Fundamentals

Master C++ Loops: When to Use for, while, and do-while

Learn the three core C++ loop structures—for, while, and do-while—including their syntax, practical examples, control statements like break and continue, plus common pitfalls to avoid for reliable programming.

Loopsc++control statements
0 likes · 6 min read
Master C++ Loops: When to Use for, while, and do-while
Liangxu Linux
Liangxu Linux
Sep 21, 2023 · Fundamentals

When to Use {} vs do{…}while(0) vs ({}) in C Function‑like Macros

This article explains the three common techniques for wrapping C function‑like macros—plain braces, do{…}while(0), and the GNU ({}) extension—detailing their syntax, usage pitfalls, advantages, disadvantages, and recommendations for safe macro design.

GNU extensionMacrosc++
0 likes · 8 min read
When to Use {} vs do{…}while(0) vs ({}) in C Function‑like Macros
php Courses
php Courses
Jul 6, 2023 · Backend Development

How to Implement while and do...while Loops in PHP

This article explains the purpose of loops in programming and provides detailed PHP examples of while and do...while constructs, including syntax, step‑by‑step code samples, and important behavior notes such as condition evaluation timing.

BackendLoopsdo-while
0 likes · 4 min read
How to Implement while and do...while Loops in PHP