Tagged articles
7 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Aug 20, 2025 · Fundamentals

Unlock the Power of C’s static Keyword: Memory, Scope, and Real‑World Uses

This article explains the C static keyword, showing how it gives local variables persistent memory, restricts global symbols to a single file, and enables shared data across structs, with clear code examples, common patterns like singletons and cached Fibonacci, and important pitfalls to avoid.

CMemoryprogramming fundamentals
0 likes · 12 min read
Unlock the Power of C’s static Keyword: Memory, Scope, and Real‑World Uses
php Courses
php Courses
Sep 13, 2024 · Backend Development

Understanding PHP Static Members: self::, parent::, and static::

This article explains PHP static members, how self::, parent::, and static:: differ in inheritance contexts, when to use static members, and provides clear code examples illustrating their distinct behaviors for method and property access.

InheritanceOOPparent
0 likes · 7 min read
Understanding PHP Static Members: self::, parent::, and static::
Open Source Linux
Open Source Linux
Feb 27, 2024 · Fundamentals

Unlocking static, volatile, sizeof & I2C: Essential C Tips for Embedded Engineers

This article explains the roles of the static and volatile keywords, compares sizeof and strlen, shows how to reliably compare floating‑point numbers, discusses the impact of floating‑point operations on STM32 interrupt performance, and outlines the I2C protocol and address configuration for embedded systems.

C programmingI2Cembedded systems
0 likes · 13 min read
Unlocking static, volatile, sizeof & I2C: Essential C Tips for Embedded Engineers
Liangxu Linux
Liangxu Linux
Sep 10, 2022 · Fundamentals

Master C Preprocessor Tricks, Static/Const/Volatile Keywords, and Common Embedded Pitfalls

This article walks through essential C concepts for embedded development, including macro definitions for constants and MIN, the use of #error, infinite loops, variable declaration patterns, the roles of static, const, and volatile, bit‑mask operations, absolute address access, ISR constraints, unsigned‑int quirks, safe typedef usage, and tricky expressions like a+++b.

C programmingConst keywordMacros
0 likes · 19 min read
Master C Preprocessor Tricks, Static/Const/Volatile Keywords, and Common Embedded Pitfalls