What is a static variable?

devquora
devquora

Posted On: Jul 01, 2024

 

A static variable is a variable which even after the execution of the procedure in which it is mentioned, retains the value given to it.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    VB.Net Interview Questions

    What do you understand by VB.net?

    VB.NET is an object-oriented programming language, an update of the classic Visual Basic. It aids web development and services and is simple and easy to learn and deploy...

    VB.Net Interview Questions

    What are the different variables in VB.net?

    In VB.NET, variables can be classified into different types, including Shared, Static, and Shadows variables. Each type has unique uses and functionalities, crucial for efficient programming...

    VB.Net Interview Questions

    What are the shared variables?

    A Shared variable in VB.NET is accessible by all classes or structures in a program. It is declared using the keyword "Shared" and is not confined to a particular class or structure...