Today I will discuss the details of C programming in front of you ... Hopefully, the discussion will be useful to you!
Those who did not see the previous episode {the introduction of function}, they go here.
The last part of the C program has been discussed in different functions. Today, we will discuss the important thing about C program {data type}. I am starting my post by saying no.
C programming DaTa types:
The C program works with many types of data, such as whole numbers, fractions, characters, strings etc. The main types of data type in the program are 4 types. These are called built-in data types. The data types are discussed below:
source
Char Data Type: This is used to work with character type data in C program. For this, the compiler preserves 1 byte space.
Int Type Data: This is used to work on integer (eg -134, -45344) etc. in C program. For this, the compiler reserves 2 bytes of space.
Float Type Data: Float is used to work with fractions number in C program. For this the compiler reserves 4 bytes of space.
Double Type Data: Also used for fractions, but its ranges are higher. For this the compiler reserves 8 bytes of space.
You got a 2.07% upvote from @moneymatchgaming courtesy of @mdaminul! Please consider upvoting this post to help support the MMG Competitive Gaming Community.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Nice! I already learning C++. Your posts can be usefull for me :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit