What is the lifetime of each variable? when does it begin? when does it end

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question

Can you answer this question for me because i don't understand it, can you please be every specfic with answer so i CAN understand it. Can you label each part.

 

question:
What is the lifetime of each variable? when does it begin? when does it end?

String* x;
int main () {
}
P();
q();
int p() {
}
= new String [10];
X =
int q () {
}
delete x
Transcribed Image Text:String* x; int main () { } P(); q(); int p() { } = new String [10]; X = int q () { } delete x
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Payback period
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT