Programming Concepts Part II

Continuing from Programming Concepts Part I, now we talk about real programming tasks.
 

As we need containers to put items in a kitchen. Then we use these items to prepare food for ourselves. The preparation of food involves some activity.


In the same manner, in programming, we need variables to store values and we do some activity to complete a task. We use instructions to complete a task.

For example, we need two variables to store values and addition instruction (+) to find the sum of the two variables. In a high-level programming language, we say instructions as operators.
a = 5

b = 8

a + b is 13
 

The first time when we introduce a variable in a program it is called the declaration of the variable. And the first-time value assigned to the variable is called initialization of the variable.
 

Each programming language has its own way of variable declaration and initialization.

In this series, we are going to learn the fundamentals of computer programming. Language-specific features will be provided in a different series.

Happy reading, see you soon.

Comments

Popular posts from this blog

Programming Concepts Part I

Rust Hello World Program