---
title: "#static-variable articles | Hashnode"
description: "Explore 6 articles tagged #static-variable on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/static-variable"
---

Tag

# #static-variable

6 posts · 0 followers

[abhishek kumar](https://hashnode.com/@AksiCodeBasics) · [Aug 15, 2024](https://hashnode.com/posts/learn-c-with-oops-concept-types-of-variables/66bdcfef185d69631c7a6035)

### [Learn C# with OOPS Concept (Types of Variables)](https://aksilearntocoder.hashnode.dev/learn-c-with-oops-concept-types-of-variables?utm_source=hashnode&utm_medium=feed)

Part-3

5 min read · [aksilearntocoder.hashnode.dev](https://aksilearntocoder.hashnode.dev/learn-c-with-oops-concept-types-of-variables?utm_source=hashnode&utm_medium=feed)

[Jinali Ghoghari](https://hashnode.com/@JinaliInFlutterLand) · [Mar 29, 2024](https://hashnode.com/posts/dart-static-variable-static-method/660650c3e9fff823bf493670)

### [Dart: Static variable & static method](https://jinali.hashnode.dev/dart-static-variable-static-method?utm_source=hashnode&utm_medium=feed)

Static variable or class variable & static method is based on the class. Static variable: void main() { var obj = A(); print(A.y); } class A //int x = 10; static int y = 20; } // output: 20 The class name is required to access th...

2 min read · [jinali.hashnode.dev](https://jinali.hashnode.dev/dart-static-variable-static-method?utm_source=hashnode&utm_medium=feed)

[Jyotiprakash Mishra](https://hashnode.com/@jpmishra) · [Dec 30, 2023](https://hashnode.com/posts/need-globals-without-name-collisions-static-at-file-level/6590518444d2a261846aa7fe)

### [Need globals without name collisions? Static at file level!](https://blog.jyotiprakash.org/need-globals-without-name-collisions-static-at-file-level?utm_source=hashnode&utm_medium=feed)

In C programming, the static keyword can be used in different contexts. When static is used at the file level, also known as file scope or global scope, it gives the variable or function "internal linkage." This means that the variable or function is...

2 min read · [blog.jyotiprakash.org](https://blog.jyotiprakash.org/need-globals-without-name-collisions-static-at-file-level?utm_source=hashnode&utm_medium=feed)

[Jyotiprakash Mishra](https://hashnode.com/@jpmishra) · [Dec 30, 2023](https://hashnode.com/posts/functions-can-leave-ghosts-static-variables/658fb0402b639f30447dccc5)

### [Functions can leave ghosts! Static variables](https://blog.jyotiprakash.org/functions-can-leave-ghosts-static-variables?utm_source=hashnode&utm_medium=feed)

Static variables in C have unique characteristics compared to other types of variables. They are allocated in the data segment of the program's memory, which is neither in the stack nor the heap. Here's a simple example to illustrate the use and beha...

5 min read · [blog.jyotiprakash.org](https://blog.jyotiprakash.org/functions-can-leave-ghosts-static-variables?utm_source=hashnode&utm_medium=feed)

[Raine](https://hashnode.com/@RaineYang) · [Dec 27, 2023](https://hashnode.com/posts/rust-learning-note-global-variable/658c40ba1daa2fa1b0fd851c)

### [Rust Learning Note: Global Variable](https://raine-yang.com/rust-learning-note-global-variable?utm_source=hashnode&utm_medium=feed)

This article is a summary of Chapter 4.7 of Rust Course (course.rs/) Global Variables Initialized at Compile Time Static Constant Static constants are global constants that can be used anywhere in the program, regardless of the scope in which it is d...

3 min read · [raine-yang.com](https://raine-yang.com/rust-learning-note-global-variable?utm_source=hashnode&utm_medium=feed)
