Tag

while

1 views collected around this technical thread.

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.

BackendProgrammingdo-while
0 likes · 4 min read
How to Implement while and do...while Loops in PHP
Python Programming Learning Circle
Python Programming Learning Circle
Feb 9, 2023 · Fundamentals

Understanding Loop Structures in Python: for, while, break, continue, and Nested Loops

This article explains why loops are needed in programming, introduces Python's for‑in and while loops, demonstrates their syntax with practical examples—including range variations, break/continue statements, and nested loops such as the multiplication table—and provides exercises on prime checking and GCD/LCM calculation.

Pythonforloops
0 likes · 9 min read
Understanding Loop Structures in Python: for, while, break, continue, and Nested Loops
Laravel Tech Community
Laravel Tech Community
Jan 4, 2022 · Fundamentals

Differences Between while(1) and for(;;) Loops in C

The article explains the syntax and semantics of while(1) and for(;;) infinite loops in C, compares their generated assembly code, and demonstrates through compiled examples that both constructs produce essentially identical machine code despite minor semantic differences.

C++assemblycompiler
0 likes · 4 min read
Differences Between while(1) and for(;;) Loops in C
Selected Java Interview Questions
Selected Java Interview Questions
Jan 4, 2022 · Fundamentals

Differences Between while(1) and for(;;) Infinite Loops in C

This article explains the syntax, execution flow, and practical differences between the C constructs while(1) and for(;;), demonstrating through compiled assembly that both produce identical code for an empty infinite loop under typical compiler settings.

C programmingassemblycompiler
0 likes · 5 min read
Differences Between while(1) and for(;;) Infinite Loops in C