Search⌘ K
AI Features

What are Variables?

Explore the concept of variables in C# programming, including how to properly name them using conventions like camelCase. Understand their role as named memory locations that store data such as numbers or text. This lesson prepares you to handle variables effectively in C# coding.

We'll cover the following...

Introduction

A variable in any programming language is a named piece of computer memory, containing some information inside.

Think of a variable as a box with a name, where we can “store” something.

We create, edit and delete variables, as much as we need in our tasks. They are devices that are used to store data, such as a number, or a string of character data.

Naming your Variables

Programmers use symbolic names to ...