#include #include int *my_function() { // this returns a pointer int *int_ptr_on_heap = malloc(sizeof(int)); *int_ptr_on_heap = 10; printf("The value of y is: %d\n", *int_ptr_on_heap); printf("The address of y is: %p\n", int_ptr_on_heap); return int_ptr_on_heap; } int main(void) { int *x = my_function(); printf("%d\n", *x); return 0; }