SlideShare a Scribd company logo
1 of 7
Download to read offline
What is the function call stack?
void a()
{
}
void b()
{
a();
}
int main()
{
b();
}
What is the function call stack?
Stack Framemain()
void a()
{
}
void b()
{
a();
}
int main()
{
b();
}
What is the function call stack?
Stack Framemain()
void a()
{
}
void b()
{
a();
}
int main()
{
b();
}
Stack Frameb()
What is the function call stack?
Stack Framemain()
void a()
{
}
void b()
{
a();
}
int main()
{
b();
}
Stack Frame
a() Stack Frame
b()
What is the function call stack?
Stack Framemain()
void a()
{
}
void b()
{
a();
}
int main()
{
b();
}
Stack Frameb()
What is the function call stack?
Stack Framemain()
void a()
{
}
void b()
{
a();
}
int main()
{
b();
}
What is the function call stack?
void a()
{
}
void b()
{
a();
}
int main()
{
b();
}

More Related Content

What's hot

Recursion(Advanced data structure)
Recursion(Advanced data structure)Recursion(Advanced data structure)
Recursion(Advanced data structure)kurubameena1
 
Union in C programming
Union in C programmingUnion in C programming
Union in C programmingKamal Acharya
 
Brute force-algorithm
Brute force-algorithmBrute force-algorithm
Brute force-algorithm9854098540
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and AlgorithmDhaval Kaneria
 
File Handling and Command Line Arguments in C
File Handling and Command Line Arguments in CFile Handling and Command Line Arguments in C
File Handling and Command Line Arguments in CMahendra Yadav
 
Control structure C++
Control structure C++Control structure C++
Control structure C++Anil Kumar
 
DSA (Data Structure and Algorithm) Questions
DSA (Data Structure and Algorithm) QuestionsDSA (Data Structure and Algorithm) Questions
DSA (Data Structure and Algorithm) QuestionsRESHAN FARAZ
 
class and objects
class and objectsclass and objects
class and objectsPayel Guria
 
Structure of C++ - R.D.Sivakumar
Structure of C++ - R.D.SivakumarStructure of C++ - R.D.Sivakumar
Structure of C++ - R.D.SivakumarSivakumar R D .
 
Static Data Members and Member Functions
Static Data Members and Member FunctionsStatic Data Members and Member Functions
Static Data Members and Member FunctionsMOHIT AGARWAL
 
File Management in C
File Management in CFile Management in C
File Management in CPaurav Shah
 
Data Structures and Algorithm Analysis
Data Structures  and  Algorithm AnalysisData Structures  and  Algorithm Analysis
Data Structures and Algorithm AnalysisMary Margarat
 
Data Structure and its Fundamentals
Data Structure and its FundamentalsData Structure and its Fundamentals
Data Structure and its FundamentalsHitesh Mohapatra
 

What's hot (20)

Recursion(Advanced data structure)
Recursion(Advanced data structure)Recursion(Advanced data structure)
Recursion(Advanced data structure)
 
Union in C programming
Union in C programmingUnion in C programming
Union in C programming
 
Brute force-algorithm
Brute force-algorithmBrute force-algorithm
Brute force-algorithm
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
 
File Handling and Command Line Arguments in C
File Handling and Command Line Arguments in CFile Handling and Command Line Arguments in C
File Handling and Command Line Arguments in C
 
Control structure C++
Control structure C++Control structure C++
Control structure C++
 
DSA (Data Structure and Algorithm) Questions
DSA (Data Structure and Algorithm) QuestionsDSA (Data Structure and Algorithm) Questions
DSA (Data Structure and Algorithm) Questions
 
class and objects
class and objectsclass and objects
class and objects
 
Tree - Data Structure
Tree - Data StructureTree - Data Structure
Tree - Data Structure
 
Pointers in c++
Pointers in c++Pointers in c++
Pointers in c++
 
Structure of C++ - R.D.Sivakumar
Structure of C++ - R.D.SivakumarStructure of C++ - R.D.Sivakumar
Structure of C++ - R.D.Sivakumar
 
Abstract Data Types
Abstract Data TypesAbstract Data Types
Abstract Data Types
 
Static Data Members and Member Functions
Static Data Members and Member FunctionsStatic Data Members and Member Functions
Static Data Members and Member Functions
 
Programming in c Arrays
Programming in c ArraysProgramming in c Arrays
Programming in c Arrays
 
Complexity analysis in Algorithms
Complexity analysis in AlgorithmsComplexity analysis in Algorithms
Complexity analysis in Algorithms
 
File in C language
File in C languageFile in C language
File in C language
 
File Management in C
File Management in CFile Management in C
File Management in C
 
Data Structures and Algorithm Analysis
Data Structures  and  Algorithm AnalysisData Structures  and  Algorithm Analysis
Data Structures and Algorithm Analysis
 
Data Structure and its Fundamentals
Data Structure and its FundamentalsData Structure and its Fundamentals
Data Structure and its Fundamentals
 
Data structure using c++
Data structure using c++Data structure using c++
Data structure using c++
 

More from Gail Carmichael

Deep Copy of a Linked List
Deep Copy of a Linked ListDeep Copy of a Linked List
Deep Copy of a Linked ListGail Carmichael
 
References Are 'Nice' Pointers
References Are 'Nice' PointersReferences Are 'Nice' Pointers
References Are 'Nice' PointersGail Carmichael
 
Insertion Sort Algorithm
Insertion Sort AlgorithmInsertion Sort Algorithm
Insertion Sort AlgorithmGail Carmichael
 
Find the Maximum Algorithm
Find the Maximum AlgorithmFind the Maximum Algorithm
Find the Maximum AlgorithmGail Carmichael
 
Attracting Women to Computing and Why it Matters
Attracting Women to Computing and Why it MattersAttracting Women to Computing and Why it Matters
Attracting Women to Computing and Why it MattersGail Carmichael
 
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...Gail Carmichael
 
Interactive Storytelling in Games: Next Steps
Interactive Storytelling in Games: Next StepsInteractive Storytelling in Games: Next Steps
Interactive Storytelling in Games: Next StepsGail Carmichael
 
Coherent Emergent Stories - GHC13
Coherent Emergent Stories - GHC13Coherent Emergent Stories - GHC13
Coherent Emergent Stories - GHC13Gail Carmichael
 
Interactive Storytelling (CUSEC 2013)
Interactive Storytelling (CUSEC 2013)Interactive Storytelling (CUSEC 2013)
Interactive Storytelling (CUSEC 2013)Gail Carmichael
 
Understanding the Power of Augmented Reality for Learning
Understanding the Power of Augmented Reality for LearningUnderstanding the Power of Augmented Reality for Learning
Understanding the Power of Augmented Reality for LearningGail Carmichael
 
Interactive Storytelling (CANCON 2012)
Interactive Storytelling (CANCON 2012)Interactive Storytelling (CANCON 2012)
Interactive Storytelling (CANCON 2012)Gail Carmichael
 
Global Context Descriptors for SURF and MSER Feature Descriptors
Global Context Descriptors for SURF and MSER Feature DescriptorsGlobal Context Descriptors for SURF and MSER Feature Descriptors
Global Context Descriptors for SURF and MSER Feature DescriptorsGail Carmichael
 

More from Gail Carmichael (16)

Head and Tail Recursion
Head and Tail RecursionHead and Tail Recursion
Head and Tail Recursion
 
Branching Story Example
Branching Story ExampleBranching Story Example
Branching Story Example
 
Deep Copy of a Linked List
Deep Copy of a Linked ListDeep Copy of a Linked List
Deep Copy of a Linked List
 
Linked List Operations
Linked List OperationsLinked List Operations
Linked List Operations
 
References Are 'Nice' Pointers
References Are 'Nice' PointersReferences Are 'Nice' Pointers
References Are 'Nice' Pointers
 
Pointers
PointersPointers
Pointers
 
Insertion Sort Algorithm
Insertion Sort AlgorithmInsertion Sort Algorithm
Insertion Sort Algorithm
 
Find the Maximum Algorithm
Find the Maximum AlgorithmFind the Maximum Algorithm
Find the Maximum Algorithm
 
Attracting Women to Computing and Why it Matters
Attracting Women to Computing and Why it MattersAttracting Women to Computing and Why it Matters
Attracting Women to Computing and Why it Matters
 
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
Thesis Proposal: Creating Satisfying Game Experiences with Coherent Emergent ...
 
Interactive Storytelling in Games: Next Steps
Interactive Storytelling in Games: Next StepsInteractive Storytelling in Games: Next Steps
Interactive Storytelling in Games: Next Steps
 
Coherent Emergent Stories - GHC13
Coherent Emergent Stories - GHC13Coherent Emergent Stories - GHC13
Coherent Emergent Stories - GHC13
 
Interactive Storytelling (CUSEC 2013)
Interactive Storytelling (CUSEC 2013)Interactive Storytelling (CUSEC 2013)
Interactive Storytelling (CUSEC 2013)
 
Understanding the Power of Augmented Reality for Learning
Understanding the Power of Augmented Reality for LearningUnderstanding the Power of Augmented Reality for Learning
Understanding the Power of Augmented Reality for Learning
 
Interactive Storytelling (CANCON 2012)
Interactive Storytelling (CANCON 2012)Interactive Storytelling (CANCON 2012)
Interactive Storytelling (CANCON 2012)
 
Global Context Descriptors for SURF and MSER Feature Descriptors
Global Context Descriptors for SURF and MSER Feature DescriptorsGlobal Context Descriptors for SURF and MSER Feature Descriptors
Global Context Descriptors for SURF and MSER Feature Descriptors
 

Recently uploaded

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Recently uploaded (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

Function Call Stack

  • 1. What is the function call stack? void a() { } void b() { a(); } int main() { b(); }
  • 2. What is the function call stack? Stack Framemain() void a() { } void b() { a(); } int main() { b(); }
  • 3. What is the function call stack? Stack Framemain() void a() { } void b() { a(); } int main() { b(); } Stack Frameb()
  • 4. What is the function call stack? Stack Framemain() void a() { } void b() { a(); } int main() { b(); } Stack Frame a() Stack Frame b()
  • 5. What is the function call stack? Stack Framemain() void a() { } void b() { a(); } int main() { b(); } Stack Frameb()
  • 6. What is the function call stack? Stack Framemain() void a() { } void b() { a(); } int main() { b(); }
  • 7. What is the function call stack? void a() { } void b() { a(); } int main() { b(); }