ASP Programming Question:

What are LOCAL and GLOBAL variables?

Tweet Share WhatsApp

Answer:

Local variables lifetime ends when the Procedure ends. Global variables lifetime begins at the start of the script and ends at the end of the script and it can be used by any procedure within the script. Declaring a variable by using the keyword PRIVATE makes the variable global within the script, but if declared using PUBLIC, then all scripts can refer the variable.

Download ASP Programming PDF Read All 194 ASP Programming Questions
Previous QuestionNext Question
What is Session Object?What are the tasks performed by <FORM> tags?