What is a Variable? & Data Types and Value Ranges
What is a Variable?
A variable is a memory/data information field that can take/transfer different values every time the program runs, and these fields are called variables.Variables should comply with naming conventions and should be named in a way that makes associations for the user about the value/data they store. Click here to see the naming conventions.
If we need to give examples of variables;
They should be similar to AdSoy, AdSoyad, adSoyad, Ad_Soyad.
Variables are one of the building blocks in coding and developing a program; you cannot create a program without variables, and even if you do, it will not be as efficient or advanced as a program using variables.
Data Types
Integer (Int): Data type that holds integer numbers
Float: Data type that holds decimal numbers
Bool: Data type that takes the value True or False
String: Data type made up of chars and can store words
Char: Data type that can hold only 1 letter
Value Ranges
Data types that hold integer numbers
Types that hold decimal numbers
Textual types
Logical types
Types that hold decimal numbers
Textual types
Logical types


Yorum Gönder