Types Language C and Their Functions


 

Being a programmer of course not only knows how computers work, but you also have to be able to know everything about data. For this reason, this data is divided into various kinds according to their classification and function, where these data do have benefits for computer performance, which is through the codes in the programming language. Therefore, so that you can find out more about what data types are in the C language and their functions, you can see them as below.


Types of Data Types in C . Language

When talking about the types of data types that exist in the C language, they are also divided into four groups, namely:

1. Basic Data Type

The first is the basic data type. Where the basic data types contained in the C++ include language are the most basic data types that you should know and are available in the C programming language. In addition, through these basic data types, they are further divided into three types, such as:


• Integer is a data type that serves to accommodate whole numbers, such as 5,7 and 48.

• Char is a data type that will contain 1 letter or 1 character. Examples are '%', 'Z' and 'a'.

• Float is a data type that can accommodate fractional numbers.


So, the basic data types in computer programming are also called primary data types, basic data types and also fundamental data types.


2. Derived Data Types in C . Language

Next, there are derived data types that are in the C programming language. Where this data type also comes from the basic data type, which has been grouped or modified. Then through the C language data types, there are also several types, including:

• Structure, which is a data type which will consist of various sets of basic data types. In addition, for this data type there can be more than 1 type.

• Array is a data type that consists of various sets of basic data types and usually this data type must be of one type.

• Pointer is a data type that is used to access the memory address that is used directly.


3.    Tipe Data Void

For the void data type, this is a special data type, which later indicates the absence of data. So, the use of this data type is usually done for some situations, such as functions, which do not return a value or fill a function argument with an empty value.


4. Type data embed

Finally, there is also an enum or form data type. Where this data type is a data type that will be created by the programmer himself and usually the contents of the data have been determined by the programmer.

That's it, there is some information that you can see about C language data types. Hopefully the above information can be useful for you!


Tags: C language programming language, C language data types, data types in C language, programming language.

0 Response to "Types Language C and Their Functions"

Post a Comment

Iklan Tengah Artikel 1

Iklan Bawah Artikel