Computer Science, asked by agarpro7246, 9 months ago

Write visual basic statement to declare an integer variable which stores value not more than 255

Answers

Answered by gauravarduino
3

Explanation:

List of variables being declared in this statement. ... For more information, see Access levels in Visual Basic. ... A variable that holds a zero-length array does not have the value Nothing .

Answered by ridhimakh1219
2

Visual basic statement to declare an integer variable

Explanation:

Dim keyword in visual basic

Dim keyword is used in the Visual Basic to declare variables.  

Syntax to declare variable is given below:

Dim variable_name As variable_type

Example

An Integer variable named RollNo is declared is as follow:

Dim RollNo As Integer

Integer data type stores whole numbers with memory requirement of 2 bytes and value ranging from -32,768 to 32,767.

Byte data type stores whole numbers with memory requirement of 1 byte and value ranging from 0 to 255.

Similar questions