Share:
Notifications
Clear all

What are variables in C/C++?

1 Posts
1 Users
0 Reactions
677 Views
(@kajal)
Posts: 313
Reputable Member
Topic starter
 

When you write a program in C or C++, you need a way to store and manipulate data. This is where variables and data types come into play.

Variable

A variable is simply a named storage location in memory that holds a value.

 

 

Think of it like a container where you can put data, retrieve it, or change it during the execution of your program.

data_type variable_name = value;
 
Posted : 24/09/2025 3:48 am
Share: