1) char - 8 bits or 1 byte. It holds enough information to hold one character (thus the name of the type). Usually defined by single quotes.
Ex. 'a'
2) String - An array of characters. In most languages a string can contain 2,147,483,647 characters (2^31 - 1). Denoted by using double quotes around the involved characters
Ex. "Hello"
3) int16 or short - An integer between 65535 (2^16 - 1) and -65534 (-2^16 - 2). Must be specified to be a short or int16 (which are one and the same thing)
Ex. new int16(1547)
4) int32 (often just an int, short for integer) - An integer between 2,147,483,647 (2^31 - 1) and -2,147,483,646 (-2^31 - 2). Just need to state a number.
Ex. 254876
5) byte - holds a number between 0 and 255 (including both 0 and 255). Used for holding binary data, usually as an array of bytes. Also used to hold information for colors, one byte for red, one for blue, one for green, and one for the alpha (alpha is for transparency).
Ex. new Byte(255)
Note: examples work in most (if not all) object oriented languages, like Java and C#.
Another Note: int16, int32, and (undiscussed) int64 are only given those names in the .NET framework they can be interchanged with short, int, and long respectively.
2007-08-08 06:09:45
·
answer #1
·
answered by coreyog 3
·
0⤊
0⤋
1) system-driver 2) fast and more high level than c 3) quick and dirty administrative runonce software 4) dont know 5) is not a language 6) dynamic webpages 7) dont know 8) database access layer 9) dont knw 10) general purpose mostly used for businiess logic, successor of c++ not as fast . 11) enterprise java 12) dtabase query language 13) see 12 14) dont knw 15) specification for a general purpuse human readable binary format. 16) dynamic hypertext mark up language
2016-04-01 05:40:46
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
Check out this Wikipedia entry:
http://en.wikipedia.org/wiki/Data_type
2007-08-08 04:44:55
·
answer #3
·
answered by Yoi_55 7
·
0⤊
0⤋