








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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]