What is the output of the following program?
$($Assume that the value returned by the malloc call is $1001.)$
#include<stdio.h>
#include<stdlib.h>
void fun(int **y);
int main()
{
int *x = (int*)malloc(sizeof(int));
*x = 132;
fun(&x);
printf("%d %u\n",*x,x);
}
void fun(int **y)
{
int z=21;
**y = z;
printf("%u ",*y);
}
- $21$ $132$ $1001$
- $1001$ $21$ $1001$
- $1001$ garbage $1001$
- $21$ $21$ $132$