SlideShare a Scribd company logo
1 of 2
Download to read offline
Draw out the exact memory layout (with the name, size, and correct location of all relevant
control and user data) of the stack area when fun3() is invoked (i.e., right after its stack frame is
added to the top of the stack).
void fun3(void){
char a[8];
double b;
return;
}
void fun2(void){
fun3();
}
void fun1(void){
char a[16];
int b;
float c;
fun2();
}
int main(void){
fun1();
}
Draw out the exact memory layout (with the name- size- and correct loc.pdf

More Related Content

More from sbksan

Please use the exact code provided and show code using Alloy- Also- wh.pdf
Please use the exact code provided and show code using Alloy- Also- wh.pdfPlease use the exact code provided and show code using Alloy- Also- wh.pdf
Please use the exact code provided and show code using Alloy- Also- wh.pdf
sbksan
 

More from sbksan (19)

Explain how to get this answer 39) The above figure shows a person's u.pdf
Explain how to get this answer 39) The above figure shows a person's u.pdfExplain how to get this answer 39) The above figure shows a person's u.pdf
Explain how to get this answer 39) The above figure shows a person's u.pdf
 
Archeoptery was an early bird that arose from one llneage within the d.pdf
Archeoptery was an early bird that arose from one llneage within the d.pdfArcheoptery was an early bird that arose from one llneage within the d.pdf
Archeoptery was an early bird that arose from one llneage within the d.pdf
 
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdf
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdfDeposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdf
Deposits of eroded volcanic ash surrounding Mt- Pinatubo were observed.pdf
 
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdf
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdfTB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdf
TB MC Qu- 07-95 (Static) Gideon Company uses the direct write-off meth.pdf
 
What is the genotypic ratio-frequency of the F1 generation from this c.pdf
What is the genotypic ratio-frequency of the F1 generation from this c.pdfWhat is the genotypic ratio-frequency of the F1 generation from this c.pdf
What is the genotypic ratio-frequency of the F1 generation from this c.pdf
 
1- what allowed the iPhone and iOS to become a platform for various co.pdf
1- what allowed the iPhone and iOS to become a platform for various co.pdf1- what allowed the iPhone and iOS to become a platform for various co.pdf
1- what allowed the iPhone and iOS to become a platform for various co.pdf
 
1- Sophie used the following data to create a frequency distribution t.pdf
1- Sophie used the following data to create a frequency distribution t.pdf1- Sophie used the following data to create a frequency distribution t.pdf
1- Sophie used the following data to create a frequency distribution t.pdf
 
Which of these is not a goal of contemporary taxonomy-classification-.pdf
Which of these is not a goal of contemporary taxonomy-classification-.pdfWhich of these is not a goal of contemporary taxonomy-classification-.pdf
Which of these is not a goal of contemporary taxonomy-classification-.pdf
 
Which of the following is not a characteristic of the F distribution-.pdf
Which of the following is not a characteristic of the F distribution-.pdfWhich of the following is not a characteristic of the F distribution-.pdf
Which of the following is not a characteristic of the F distribution-.pdf
 
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf
1- 0enit mateilala caut fer ejuivent inin 4- Cast if entin steted ahd.pdf
 
Upon learning the concept of cost of capital- your assignment will be.pdf
Upon learning the concept of cost of capital-  your assignment will be.pdfUpon learning the concept of cost of capital-  your assignment will be.pdf
Upon learning the concept of cost of capital- your assignment will be.pdf
 
The use of a milestone-tracking process as an enabling tool and proces.pdf
The use of a milestone-tracking process as an enabling tool and proces.pdfThe use of a milestone-tracking process as an enabling tool and proces.pdf
The use of a milestone-tracking process as an enabling tool and proces.pdf
 
Symputhetic pothways have a ganplion vary close to the target organ- Q.pdf
Symputhetic pothways have a ganplion vary close to the target organ- Q.pdfSymputhetic pothways have a ganplion vary close to the target organ- Q.pdf
Symputhetic pothways have a ganplion vary close to the target organ- Q.pdf
 
The Digestive Syctam - I-iver 1- Liver divided into basic units calle.pdf
The Digestive Syctam - I-iver 1- Liver divided into basic units calle.pdfThe Digestive Syctam - I-iver 1- Liver divided into basic units calle.pdf
The Digestive Syctam - I-iver 1- Liver divided into basic units calle.pdf
 
(i) Briefly explain what DDOS (Distributed Denial of Service) Attack i.pdf
(i) Briefly explain what DDOS (Distributed Denial of Service) Attack i.pdf(i) Briefly explain what DDOS (Distributed Denial of Service) Attack i.pdf
(i) Briefly explain what DDOS (Distributed Denial of Service) Attack i.pdf
 
FinTech Cast Study- Cutting Through the Fog- Finding a Future with Fin (1).pdf
FinTech Cast Study- Cutting Through the Fog- Finding a Future with Fin (1).pdfFinTech Cast Study- Cutting Through the Fog- Finding a Future with Fin (1).pdf
FinTech Cast Study- Cutting Through the Fog- Finding a Future with Fin (1).pdf
 
Post at least two paragraphs in which you respond to the following- Di.pdf
Post at least two paragraphs in which you respond to the following- Di.pdfPost at least two paragraphs in which you respond to the following- Di.pdf
Post at least two paragraphs in which you respond to the following- Di.pdf
 
Please use the exact code provided and show code using Alloy- Also- wh.pdf
Please use the exact code provided and show code using Alloy- Also- wh.pdfPlease use the exact code provided and show code using Alloy- Also- wh.pdf
Please use the exact code provided and show code using Alloy- Also- wh.pdf
 
nich of the following is NOT a true statement about human papillomavir.pdf
nich of the following is NOT a true statement about human papillomavir.pdfnich of the following is NOT a true statement about human papillomavir.pdf
nich of the following is NOT a true statement about human papillomavir.pdf
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

Draw out the exact memory layout (with the name- size- and correct loc.pdf

  • 1. Draw out the exact memory layout (with the name, size, and correct location of all relevant control and user data) of the stack area when fun3() is invoked (i.e., right after its stack frame is added to the top of the stack). void fun3(void){ char a[8]; double b; return; } void fun2(void){ fun3(); } void fun1(void){ char a[16]; int b; float c; fun2(); } int main(void){ fun1(); }