Monday, May 24, 2010

What are the different data types in computer programming?

Different programming languages have different data types.


Some commonly used data types which are also present in Visual Basic are:





Byte


Single


Double


Integer


String


Boolean


Currency


Variant





Further more, some languages also allow you to create custom data types.

What are the different data types in computer programming?
There are basically 5 data types, they are "int" (integer) "float" (decimals, includes double) "Boolean" (logical i.e. True or false) "char" (characters), and "byte" (near machine language).





But over the years, many different companies have made different types, like Borland which has int, char, boolean, double, and byte, while Sun Microsystems has int. char, string, boolean. double, byte. But remember the basics. Since the programming languages have started basically out the same.
Reply:Er, I don't mean to be rude, but......if you have to ask that question then you definitely need to buy a book on whatever program language that you're using.


Data types are, for the most part, related to the data size. There are type modifiers such as signed and unsigned numbers, which help the compiler determine how numbers are to be calculated.
Reply:somewhat depends on the language. Here are a few common ones:





integer, string, double, long, short, boolean
Reply:The fundamental basic data types of most programming language are:





1. Characters





2.1 Numbers (Intetegers)


2.2 Floating Point Numbers (Real Numbers)





Many derived data types are available there and depends on the language what you are using to programme.
Reply:They are classified into built in type and user defined type


Built in type also known as primary data type are


integer, char, float, double, array,Boolean





user defined type are


structure, union, enumerated





How to declare this data types and there size and memory allocation depends from language to language.
Reply:It entirely depends on the language you are using.





In essence you have chars, floats, and integers. Strings are usually some implementation of char arrays or lists. Pointers are often fundamental to a language, but would usually be stored as integers.





All other more complex data structures are made with combinations of the above.





Rawlyn.

printable cards

No comments:

Post a Comment