---
title: "Discussion on \"Key concepts in C/C++\" | Hashnode"
description: "Discussion on \"Key concepts in C/C++\". Static Keyword\nIn C/C++, a static variable can be:\n1. Inside a function (local static variable) – retains value across function calls.\n1.1 - A local static variable is initialized only once and retains its value across multiple calls.\n2. Outside a fu..."
url: "https://hashnode.com/posts/key-concepts-in-cc/67810ff2342087c99ce575e5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Key concepts in C/C++](https://pointers.hashnode.dev/key-concepts-in-cc?utm_source=hashnode&utm_medium=feed)

Static Keyword In C/C++, a static variable can be: 1. Inside a function (local static variable) – retains value across function calls. 1.1 - A local static variable is initialized only once and retains its value across multiple calls. 2. Outside a fu...

Jan 10, 2025 · 8 min read · pointers.hashnode.dev  
Updated Feb 17, 2025  
Read the article

-   [#c](https://hashnode.com/tag/c)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#static](https://hashnode.com/tag/static)
-   [#volatile](https://hashnode.com/tag/volatile)
-   [#structure](https://hashnode.com/tag/structure)

## Written by

[Shashi Shekhar](https://hashnode.com/@sshekhar)

@sshekhar

  
[View profile](https://hashnode.com/@sshekhar)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
