0% found this document useful (0 votes)
23 views

What Are Data Types

Data types determine the type of data variables can store and allocate different amounts of memory space. There are several data types in VB.NET including Boolean, Byte, Char, Date, Integer, Long, and String, which store logical values, numbers within specific ranges, dates, and text respectively.

Uploaded by

Mian Sajjad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

What Are Data Types

Data types determine the type of data variables can store and allocate different amounts of memory space. There are several data types in VB.NET including Boolean, Byte, Char, Date, Integer, Long, and String, which store logical values, numbers within specific ranges, dates, and text respectively.

Uploaded by

Mian Sajjad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

What are Data Types?

Data types determine the type of data that any variable can store. Variables belonging to different data types are allocated different amounts of space
in the memory. There are various data types in VB.NET. They include:

 Boolean: the allocated storage depends on the platform of implementation. Its value can be either True or False.
 Byte: allocated storage space of 1 byte. Values range from 0 to 255 (unsigned).
 Char: allocated a space of 2 bytes. Values range from 0 to 65535 (unsigned).
 Date: allocated storage space of 8 bytes. Values range from 0:00:00 (midnight) January 1, 0001 to 11:59:59 PM of December 31, 9999.
 Integer: has a storage space of 4 bytes. Values range between -2,147,483,648 to 2,147,483,647 (signed).
 Long: has a storage space of 8 bytes. Numbers range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807(signed).
 String: The storage space allocated depends on the platform of implementation. Values range from 0 to about 2 billion Unicode characters.

You might also like