Sign Up | Sign In
Ask Questions & Get Answers at ibibo sawaal

What is scope and lifetime of a variable?  

Asked in Computers & Technology at 5:20 PM on February 02, 2008

Tags: scope lifetime variable

Report abuse
saiashish
saiashish

Related Search

 

What does the static keyword mean in front of a variable? A method? A class? Curly braces ?

qualifier that limits the scope but causes the variable to exist for the lifetime of the program. This means a static variable is one that is not seen outside the function in which it is declared but which method. In other words, you cant change a static method into an instance method in a subclass.e.g.public class StaticVariablestatic int noOfInstances;StaticVariable noOfInstances;...Well; 1. A method

Posted in Computers & Technology by rocky singh at 2:05 PM on June 26, 2008

How do I declare a variable to make it avaliable to all procedures in all forms?

the visibility of a variable. Variables can have scope ranging from global where any procedure in the application can access the variable to local to a single procedure. Duration Duration defines the lifetimeIn the above, and have local scope. Their names suggest they should be global, but they are much more useful this way, and there are historical reasons for using these names....To make a module-level variable

Posted in Computers & Technology by Gomati at 1:44 AM on September 20, 2008

What is scope and lifetime of a variable?

When you declare a variable within a procedure, only code within that procedure can read or change the value of that variable: Its scope is local to that procedure. Sometimes, however, you want to use a variable with a broader scope, one whose value is available to all procedures within the same module, or even to all the procedures in all modules. With Visual Basic, you can specify the scope

Posted in Computers & Technology by saiashish at 10:50 PM on February 02, 2008
Tags java

What does static variable mean?

but causes the variable to exist for the lifetime of the program. This means a static variable is one that is not seen outside the function in which it is declared but which remains until the program.This is actually a better description of the const modifier.static is used in C programs to declare a variable that should exist throughout the lifetime of the program. When the program starts executing, all

Posted in Computers & Technology by mahendra at 4:56 PM on October 24, 2008

How Do Computers Store Variables?

, static variables & automatic variables. Global, static variables are stored in heap memory whereas the auto variables are stored in the run time stack. The lifetime of a variable depends upon its scope. Global variables last for the lifetime of the program, local variables exist while the function is executing & die when the function returns.

Posted in Computers & Technology by shepherd at 2:14 PM on May 08, 2008

what is global variable?

well, A global variable is a variable that is accessible in every scope. Interaction mechanisms with global variables are called global environment see also global state mechanisms. The global. They can lead to problems of naming because a global variable makes a name dangerous to use for any other local or object scope variable. A local variable of the same name can shield the global variable from

Posted in Computers & Technology by kokila vani at 7:23 PM on September 12, 2008
Tags global

What is a Variable?

Must begin with an alphabetic character.2 Cant contain an embedded period or type-declaration character.3 Must be unique within the same scope.4 Must be no longer than 255 characters.Every variable be modified during program execution. Each variable has a name that uniquely identifies it within its level of scope.Variable names:1 Must begin with an alphabetic character.2 Cant contain an embedded period

Posted in Computers & Technology by shepherd at 2:13 PM on May 08, 2008
Tags variable

What do you understand from the scope and lifetime of a variable?

Hi,To Know more details, please refer to the following links:http://goo.gl/2tTwE http://goo.gl/qlWhxhttp ://goo.gl/ktrBX

Posted in Computers & Technology by Anonymous at 5:14 PM on October 04, 2012

What is the difference between scope and lifetime of variable?

Aapni Parwaaz-e-Takhayyull Thi Zamane Se JudaJiss Jagah Koyi Na Pahuncha Wahaan Tak PahuncheMain Samajhta Houn Harr Dil Mein Khuda Rehta HainMera Paigam Mohabbat Hain Jaahan Tak Pahunche

Posted in Exams Education & References by Pakhi at 9:45 PM on March 25, 2007
Tags C, C

What is a Variable?

. In addidtion all variables have a scope, which defines thier visibilty and a lifetime. for example in this loop... forint i=0;;i ... here i is a varible whose value changes with each iteration, intially it has 0, tahn after each iteration it goes on increasing by 1, its scope and lifetime exist only in this loop, out of which it deosnt exist....A variable is a quantity which changes by taking on the value of any

Posted in Computers & Technology by madhuhot at 4:06 PM on October 31, 2007
Tags comp

Similar Questions

Left Ads
© 2006 - 2013 ibibo Web Pvt Ltd. All rights reserved.