using a pointer received as parameter

Multiple choice question

What does the following code will print?

#include <stdio.h>
void my_func(int *x)
{
  x = (int *)malloc(sizeof(int));
  *x=12;
}
int main()
{
  int v=10;
  my_func(&v);
  printf("%d", v);
}
wrong

12

correct

10