Implicit and Explicit variable declaration

0
179

In this topic, you will learn about, What do you mean by implicit and explicit variable declaration?

Implicit declaration of variable creates a specified type of variable where implicit declaration specifies at the beginning of any functional module.

The implicit variable must be declared at the starting of the program and specify data types. It is declared with the help of a dim(dimensional) keyword.

Eg:

Dim x as integer
Dim y as integer
Dim z as integer

Visual Basic also supports explicit variable declaration but explicit variable only uses variant datatypes. It can be accessed directly without any declaration statement but it consumes 20-byte memory space and sometimes very difficult to manage.

Comment below if you have queries related to the above article What do you mean by implicit and explicit variable declaration?

LEAVE A REPLY

Please enter your comment!
Please enter your name here