How do you declare static variable and how it is declared
and what is its lifetime?

Answer Posted / firoz ahmed

Static variable are declared within the procedure.
and it preserves the value of variable.whether is
called 10000 times.no problem.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a static variable?

565


Explain the services provided by common language infrastructure.

722


Explain the difference between c# and vb.net?

554


What is the difference between value and reference types?

549


What is the significance of delegates?

520






What is difference between inline and code behind?

520


How to create a constant in vb.net?

599


What is a static class?

597


What is internal keyword in .net framework?

632


Write a VB.Net console program to check whether a number is perfect or not.

6943


What keyword is used to accept a variable number of parameter in a method?

575


How do you retrieve the customized properties of a .net application from xml .config file?

519


What is econo-jit?

616


What are option strict and option explicit?

795


Explain the differences between vb.net and c#, related to oops concepts?

521