I am not understanding the output

include<stdio.h>

include<stdlib.h>

void fun(int a)
{
a = (int
)malloc(sizeof(int));
}

int main()
{
int *p;
fun§;
*p = 6;
printf("%d\n",*p);

getchar(); 
return(0); 

}