+ 2

What is difference b/w scope and lifetime of a variable ??

please explain.

28th Sep 2016, 6:23 PM
Haroon Fareed
Haroon Fareed - avatar
9 Antworten
+ 9
Scope is the region/area in which a variable is available for use. Lifetime of a variable refers to time for which the variable is available for use.
29th Sep 2016, 10:06 AM
Umesh Kumar
Umesh Kumar - avatar
+ 1
Umesh Kumar answer is right
29th Sep 2016, 6:35 PM
Sandeep Thakkar
Sandeep Thakkar - avatar
+ 1
ya umesh said accurate answer !!
30th Sep 2016, 5:30 PM
Hariharan B.G.
Hariharan B.G. - avatar
+ 1
perfect umesh
16th Nov 2016, 5:40 PM
Akhil A.R.
Akhil A.R. - avatar
+ 1
keep it up
30th Dec 2016, 4:29 PM
Rashid Minhas
Rashid Minhas - avatar
0
Thanks for support Sandeep
30th Sep 2016, 6:31 AM
Umesh Kumar
Umesh Kumar - avatar
0
ôđd
14th Dec 2016, 10:23 AM
Trung Nguyễn
Trung Nguyễn - avatar
0
Umesh - Perfect
24th Dec 2016, 3:05 AM
Jaideep Kedia
Jaideep Kedia - avatar
0
Wrong Umesh .. Scope is availability of a variable in particular Places in Program.. While Lifetime is availability of Variable Call in particular Places in Program..
2nd Jan 2017, 7:30 AM
Anshul Shivhare
Anshul Shivhare - avatar