/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

int main()
{
    int tal;
    int *ptrtal;
    printf("Indtast et tal: ");
    scanf("%d", &tal);
    ptrtal = &tal;
    printf("tal=%d\n",tal);
    printf("tal=%d\n",*ptrtal);
    printf("ptrtal=%08X\n",(unsigned int)ptrtal);
    printf("ptrtal=%p\n",ptrtal);
    return 0;
}
