Source: https://courses.engr.illinois.edu/cs225/fa2022/resources/stack-heap/

  1. Allocate variable a for main.
Source: https://courses.engr.illinois.edu/cs225/fa2022/resources/stack-heap/

  1. Allocate b for main and store -3.
Source: https://courses.engr.illinois.edu/cs225/fa2022/resources/stack-heap/

  1. Allocate c for main and store 12345.
Source: https://courses.engr.illinois.edu/cs225/fa2022/resources/stack-heap/

  1. Allocate p for main and store address of b.
Source: https://courses.engr.illinois.edu/cs225/fa2022/resources/stack-heap/

  1. Allocate variable a for hello and store 100.
Source: https://courses.engr.illinois.edu/cs225/fa2022/resources/stack-heap/

  1. Deallocate the stack memory of hello and return 100 to main.
Source: https://courses.engr.illinois.edu/cs225/fa2022/resources/stack-heap/

  1. Allocate d for main and store 100.
Source: https://courses.engr.illinois.edu/cs225/fa2022/resources/stack-heap/

  1. Deallocate the stack memory of main and return 0.