C programming A-Z (Part-2)

in onilne •  6 years ago 

Today I will discuss the details of C programming in front of you ... Hopefully, the discussion will be useful to you!

C-language.jpg
source

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:
59edd0eb5cbd8.png
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.

Today, if you have anything unknown about the program, you can say in the comments. If possible, will try to write more later?

See my previous post:

post 1 :

post 2 :

post 3 :

Post 4 :

Post 5 :

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

You got a 2.07% upvote from @moneymatchgaming courtesy of @mdaminul! Please consider upvoting this post to help support the MMG Competitive Gaming Community.

Loading...

Nice! I already learning C++. Your posts can be usefull for me :)