Let's have a look at Data Types in C Language. Data types are common in every programming language. There are five basic data types which we use in our programs for beginners. As we get in Advance, we can try the other data types too. 1. int (Integers) : a whole number Ex. 0, -7, 8 Size : 2 bytes or 4 bytes 2. float (Floating point value) : numbers with fractional part. Ex. 2.34, 5.19 Size : 4 bytes 3. double : Double precision floating value Size : 8 bytes 4. char (Character) : a single character Ex. A, a Size : 1 byte 5. void : valueless int, float, char are fundamental data types and arrays, pointers, structures and enums are derived data types. We can also have signed and unsigned data types. Let's not get in that detail right now. This is the basic knowledge required for the beginners.
Next
« Prev Post
« Prev Post
Previous
Next Post »
Next Post »
Subscribe to:
Post Comments (Atom)
0 Comment