---
title: "Discussion on \"C++ variable\" | Hashnode"
description: "Discussion on \"C++ variable\". In C++, a variable is a named location in memory that is used to store a value. A variable has a type, which determines the kind of value it can store, and a name, which is used to reference the variable in the program.\nIn order to declare a variable..."
url: "https://hashnode.com/posts/c-variable/63b005b842ec5647dfa033fa"
---

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

Discussion

# [C++ variable](https://lovetocode.hashnode.dev/c-variable?utm_source=hashnode&utm_medium=feed)

In C++, a variable is a named location in memory that is used to store a value. A variable has a type, which determines the kind of value it can store, and a name, which is used to reference the variable in the program. In order to declare a variable...

Dec 31, 2022 · 2 min read · lovetocode.hashnode.dev  
Updated Jan 3, 2023  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)

## Written by

[Shounak Pal](https://hashnode.com/@CodingBeast)

@CodingBeast

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
