// // va.c // OS_course_2021 // // Created by Bibhas Ghoshal on 15/08/21. // Copyright © 2021 Bibhas Ghoshal. All rights reserved. // #include #include int main(int argc, const char * argv[]){ printf("location of code: %p\n",main); printf("location of heap: %p\n",malloc(100e6)); int x=3; printf("location of stack: %p\n",&x); return x; }