Hello Steemers!!!
I'm back once again with another brand new blog based on DataTypes!!!
So, let's talk about the datatypes in respect with computer programming.
1st let's have a look at the picture:
What is DataType????
Okey, this is one the most basic and important question of programming era. I'll try to explain it as easy as I can...
Well, Data means information & we all know what Type stands for...
So, from the word itself we can assume that it stands for "Various Types of Information"...
Now, we can come to the definition of DataType in Computer Programming.
In order to make a software or game or just a normal Program we need various types of Data (information) such as like: Numbers, Names, Fractions, True-False and so on. These information are been expressed through datatypes & variables (there will be a vast discussion on variables later) . So,
"Datatype is a core component of any programming Language that can hold a particular kind of data item, as defined by the values it can take, in that specific programming language, or the operations that can be performed on it. "
Since we know what is Datatype let's know about the Data-Types in C programming Language.
In C programming Language there are basically 2 types of DATATYPE.
- Primary (Basic) DATA types &
- Secondary DATA types.
Primary Data Types:
These are the Basic Datatypes through which we can use any number or character (names) in our program.
Here's a Picture which portraits the full Scenario regarding Primary Datatypes:
Integers:
Through this very Datatype we can use any integer(non fractional) number by use the keyword "int" that's it.
now the integer is divided into two pars: Signed & Unsigned.
Signed Integers:
This integer can hold a negative or a positive number.
Unsigned Integers:
This integer can hold only a positive number.
alright let's talk about the next Datatype, Floating Point.
Floating Point:
We can use fractional number through datatype, just all we need to do is to use the keyword "float".
Measuring it's length Floating points are also been classified in 3 parts:
- Float,
- Double,
- Long Double.
Now, the last one is Characters, we can recall any name or word or alphabet by using this Datatype in our program, all we need to do is just to use the keyword, "char".
this also can be classified 3 in types as:
- char,
- signed char &
- unsigned char.
That's all for today.
See you guys on the next Blog named,
"Get to know the Basic Structure of C programming Language"...
till then be safe and be technofied...