What are LOCAL and GLOBAL variables?



What are LOCAL and GLOBAL variables?..

Answer / guest

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.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More ASP Interview Questions

Which is the default scripting language of asp in server-side?

0 Answers  


What is asp in web?

0 Answers  


Explain how to handle error in asp?

0 Answers  


Define request object?

0 Answers  


What is asp in java?

0 Answers  






Define extranet?

0 Answers  


What is aspx used for?

0 Answers  


Define asp?

0 Answers  


What is the maximum size of an array?

0 Answers  


What is the purpose of application.lock method?

0 Answers  


What is ascx cs?

0 Answers  


How to use XML file as a database in the ASP

1 Answers  


Categories