What is main data type of a function
Answers
Answer:
a data type or simply type is an attribute of data which tells the compiler or interpreter how the programmer intends to use the data. Most programming languages support basic data types of integer numbers (of varying sizes), floating-point numbers (which approximate real numbers), characters and Booleans. A data type constrains the values that an expression, such as a variable or a function, might take. This data type defines the operations that can be done on the data, the meaning of the data, and the way values of that type can be stored. A data type provides a set of values from which an expression (i.e. variable, function, etc.) may take its values
Main data type of function are - integer, floating point, character and strings.
Integer - Integers holds values which are numbers. The numbers are whole numbers and negative numbers. They can not be fraction.
Floating point - These holds numbers which contain decimal.
Character - Includes variety of data like number, punctuation, alphabet, space etc.
String - It is characterized by set of characters. It is usually marked by double quotes. It can include alphabet as well as numbers.