Breaking News
You are here: Home / Notes / SEM-4 / .NET PROGRAMMING / Constants in vb.net

Constants in vb.net

Constants

Constants

Constants

The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals.

Constants can be of any of the basic data types like an integer constant, a floating constant, a character constant, or a string literal. There are also enumeration constants as well.

The constants are treated just like regular variables except that their values cannot be modified after their definition.

 

Const PI = 3.14149
Console.WriteLine("Value of Constant Variable is  = " & PI)

Download Paper Solutions from Below Link

About admin

Scroll To Top