Void basically means empty so this data type is specifies that a function doesn’t return anything. This data type can store alphabets, digits, special characters and spaces.ĭifferent categories of character data type are explained in following table. As we discussed in Constants, they can store values both in standard form and as exponent form.ĭifferent categories of floating point data type are explained in following table. They can also take positive and negative values. ![]() This data type to store numeric values with decimal point. They can take both positive and negative values.ĭifferent categories of integer data type are explained in following table. Integer data type can contain numbers without decimal point. Primary data types are provided by C++ and can use them as such without making any modifications to them. As a result, it is important to be aware of the abilities and limitations of each data type to choose the most appropriate one. ![]() You must first complete Constant in C++ | Literals in C++ before viewing this Lesson Data Types in C++ | Primary Data Types of C++ĭata type specifies the type and range of values that can be stored in a variable. C allows us to choose between several different options with our data types because they are all stored in different ways on the computer.
0 Comments
Leave a Reply. |