Tagged articles
pointer
11 articles · Page 1 of 1
This article explains the shared behavior of Go's new and make functions, highlights their key differences—including supported types, return values, and initialization details—and provides concrete code examples to show how each should be used in practice.
Gochannelmake
0 likes · 7 min read

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.
AlgorithmC++Linked List
0 likes · 25 min read

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

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.
PHPTutorialarray
0 likes · 5 min read

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.
PHParraypointer
0 likes · 5 min read

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

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.
C++Memory LayoutStruct
0 likes · 12 min read

This article explains PHP's reset() function, which moves an array’s internal pointer back to the first element, describes its parameter and return value, and provides a complete code example demonstrating how to reset the pointer and retrieve elements using current() and next().
FunctionPHParray
0 likes · 2 min read

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.
BackendPHP__next__
0 likes · 2 min read

The article explains PHP's each() function, describing how it returns the current key/value pair from an array while moving the internal pointer forward, details its parameters and return values, notes behavior when the pointer reaches the end, and provides a complete code example with output.
Functionarrayeach
0 likes · 2 min read

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.
C++File I/Opointer
0 likes · 6 min read
