Tagged articles
10 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Jul 27, 2024 · Fundamentals

Master Linked Lists in C: From Arrays to Circular Lists

This article explains the differences between array‑based sequential storage and pointer‑based linked storage, introduces singly, doubly and circular linked lists, and provides complete C implementations for creation, insertion, deletion, and traversal with clear diagrams and step‑by‑step code examples.

ArrayData Structurealgorithm
0 likes · 25 min read
Master Linked Lists in C: From Arrays to Circular Lists
Ops Development & AI Practice
Ops Development & AI Practice
Apr 26, 2024 · Backend Development

Mastering Go's unsafe Package: When and How to Use It Safely

This article explains Go's unsafe package, covering its core concepts—Pointer, Sizeof, and Offsetof—provides practical code examples, outlines suitable scenarios such as system calls and performance tuning, and highlights the associated risks and best‑practice precautions.

GoMemorySystems Programming
0 likes · 5 min read
Mastering Go's unsafe Package: When and How to Use It Safely
php Courses
php Courses
Aug 4, 2023 · Backend Development

Using PHP end() Function to Retrieve the Last Element of an Array

This article explains the PHP end() function, its syntax, return values, and demonstrates how to use it with both indexed and associative arrays, including combined usage with reset() for reverse traversal, providing clear code examples for each scenario.

ArrayPHPTutorial
0 likes · 5 min read
Using PHP end() Function to Retrieve the Last Element of an Array
php Courses
php Courses
Aug 3, 2023 · Backend Development

Using the PHP prev() Function: Syntax, Examples, and Tips

This article explains PHP's prev() function, detailing its syntax, usage examples—including basic calls, resetting pointers with reset(), reverse array traversal with while loops—and important considerations such as boundary behavior, providing clear code snippets for developers.

ArrayPHPpointer
0 likes · 5 min read
Using the PHP prev() Function: Syntax, Examples, and Tips
php Courses
php Courses
Aug 2, 2023 · Backend Development

Understanding and Using PHP's key() Function

This article explains PHP's key() function, its syntax, how it determines the current array pointer's key, the possible return values, and provides multiple code examples demonstrating its behavior with indexed, associative, and empty arrays.

Arraykey functionphp-tutorial
0 likes · 5 min read
Understanding and Using PHP's key() Function
AI Cyberspace
AI Cyberspace
Mar 2, 2023 · Fundamentals

Mastering C Structures: From Declaration to Bit Fields

This article provides a comprehensive guide to C structures, covering declaration, variable definition, typedef aliases, initialization methods, pointer usage, member access, memory layout, nested structs, and bit fields, complete with code examples and visual illustrations to help readers understand and apply these concepts effectively.

bit fieldc++memory layout
0 likes · 12 min read
Mastering C Structures: From Declaration to Bit Fields
Laravel Tech Community
Laravel Tech Community
Dec 24, 2020 · Backend Development

PHP next() Function: Advancing the Internal Array Pointer

The PHP next() function moves an array's internal pointer forward by one position, returning the value of the next element or FALSE when no more elements exist, and is demonstrated with sample code showing how to retrieve successive items from an array.

ArrayBackendPHP
0 likes · 2 min read
PHP next() Function: Advancing the Internal Array Pointer
Liangxu Linux
Liangxu Linux
Jun 5, 2018 · Backend Development

How to Implement File-Based String Replacement in C: A Step‑by‑Step Guide

This article walks through the design and implementation of a C program that reads a text file, replaces all occurrences of a target substring with a new string using low‑level pointer operations, and writes the modified content back to the file, complete with memory‑allocation calculations and code examples.

File I/Oc++pointer
0 likes · 6 min read
How to Implement File-Based String Replacement in C: A Step‑by‑Step Guide