• Home
  • Tutorials
  • Interviews
  • Info Seed
  • Forums
  • Projects
  • Links
  • Contact Us
C Language
C POINTERS
MEMORY MANAGEMENT
INTRODUCTION
FIXED MEMORY
STACK MEMORY
HEAP MEMORY
Illustration with simple program
Functions to manage HEAP MEMORY
MEMORY ALLOCATION
MEMORY ALLOCATION-II
MEMORY ALLOCATION-III
MEMORY ALLOCATION-IV
Illustrations of MEMORY ALLOCATION
Illustration I
Illustration-I Contd..
Illustration-I Contd..
Illustration-I Contd..
Illustration II
Illustration-II Contd..
Illustration-II Contd..
Illustration III
Illustration IV
FRAME POINTER

 

 

ILLUSTRATION-III:

Now we have the next statement as if statement whose condition goes wrong as value of n is zero and hence no function call is made. After this we face a closed parantesis which means function is returned to the address saved in the address register.

www.exploreroots.com

Now we are in the function Fun() which was called first. Next statement in this function is also a closed parenthesis. Hence function again gets returned.

www.exploreroots.com

Now the main ends and program execution ends and hence whole stack is de-allocated and whole stack becomes empty

www.exploreroots.com

previous next
| Copyright © 2009 exploreroots- All Rights Reserved | Disclaimer |