








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This slide contain how the variables are stored in memory..
Typology: Slides
1 / 14
This page cannot be seen from the preview
Don't miss anything!
Bhagyashree Patra North Orissa University
EXAMPLE PROGRAM… #include <stdio.h> int global_initialized = 21; int global_uninitialized; int func() { int local_inside_func; int *pointer = malloc (sizeof(int)); free(pointer); } int main(int argc, char *argv[] ) { int local_inside_main; func(); return 0; } Text segment a.out Initialized variables global_initialized(21) Uninitialized variable global_uninitialized stack Main() (^) local_inside_main Func() local_inside_func heap in t in t pointer Command line arguments argv[0]^ argv[0] argv[1] argv[1] argv[n]^ argv[n]