fork(1) download
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a=1, b=2;
    int *p1=&a;
    p1=&b;
    printf("%d",*p1);
}
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
2