Sunday, October 20, 2019 13:39

Posts Tagged ‘declaring and initializing variables’

Variable Scope

Saturday, April 15th, 2017

A very important concept in programming is what we call variable scope. Though this concept should have been explained when I explained variables, it wouldn’t have made much sense back then, because it was relying on stuff we did not yet explain.… Read more

Initialization of arrays

Friday, March 31st, 2017

Like any other variables, arrays must be initialized before we can access and use an element of that array. In C#, initialization of arrays is done automatically with default initial values. For numeral types, the default initialization value is 0, False for bool type, null for reference types, etc.… Read more

Declaring and initializing variables

Monday, December 26th, 2016

The next topic in our lessons will be declaring and initializing variables. What do those term mean?

As we already said in a previous lesson, declaring a variable means creating a new variable, by telling the compiler its type and its name.… Read more

Variables

Sunday, December 25th, 2016

If you want your program to perform useful actions, it has to store information. As you know, every time you run a program, the operating system loads the programs instructions into the computer’s memory. While running, your program stores values in the memory locations by using variables.… Read more