Why do we use Variables and Constants - C Programming Tutorial 16

preview_player
Показать описание
Notes for You:: Why do we use Variables and Constants ?
- While developing any software application, we will be dealing with different types of data & data values.
Example 1:
- If we are building a banking application then we need to maintain different types of data & data values:
accountNumber=10; // accountNumber is integer type of data
rateOfInterest=13.5; // rateOfInterest is real type of data
accountHasLoan=true; // accountHasLoan is Boolean type of data

Example 2:
- If we are building a game, then we need to keep track of different types of data & data values:
playerScore= 10; // playerScore is integer type of data
worldGravity =9.8; // worldGravity is real type of data
isGameOver=false; // isGameOver is Boolean type of data

- In order to store and process all such types of data & data values computer uses its memory (RAM).
- In order to allocate a chunk of memory in the RAM and access it within a C program; we create a variable or constant.

Note:
- To store and process different types of data & data values; variables & constants are created.
- To allocate memory locations in the memory and access them within a C program; variables & constants are created.

=========================================

In the next C programming tutorial you understand; What is a Variable in C programming language, How to declare and initialize a Variable in C language, etc.

In the previous C programming tutorial you understand; Identifiers in C programming language, What are the most common Naming conventions in C language.

=========================================

C Programming Tutorials Playlist:

=========================================
Watch My Other Useful Tutorials:-

Computer Programming Fundamentals Playlist:-

C Practical LAB Exercises Playlist:-

C++ Tutorials Playlist:

=========================================

► Subscribe to our YouTube channel:

► Visit our Website:

=========================================
Hash Tags:-
#ChidresTechTutorials #CProgramming #CProgrammingTutorial
Рекомендации по теме
Комментарии
Автор

👍Every video on my channel is made with Love and Hard work, So don't forget to Like, Comment & Share.
👉Please do Subscribe, Hit the bell icon & Enjoy Learning. It's FREE.

ChidresTechTutorials
welcome to shbcf.ru