• 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

 

 

MEMORY ALLOCATION-- ILLUSTRATION:

Q - Consider the C code:

int a = 2;

int main()

{

 int x= func2(5);

printf(“%d”, x);

 return 0;

}

 

int func1(int n)

{

Int p;

p= a*n*n;

printf(“%d”, p);

return 3;

 }

 

void func2(int n)

 {

Int k;

func1(n) ;

k=func1(2*n);

printf(“%d”,k);

return 7;}

 

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