Just a small extension of the package tikz-uml
for pointer diagrams
% \documentclass{standalone}
% \documentclass[10pt,a4,oneside]{scrartcl}
\documentclass{article}
\usepackage[active,pdftex,tightpage]{preview}
\usepackage{tikz-uml}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes}
\include{tikz-uml-pointer}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{15pt}%
\begin{document}
\begin{tikzpicture}
\umlpointer[x=0,y=0,name=pointer1,type=int *b]{}
\umlpointer[x=0,y=2,name=pointer2,type=Point *c]{}
\umlpointer[x=2,y=3,name=pointer3,type=Point *d]{}
\umlpointer[x=5,y=3,name=pointer4,type=Point *a]{}
\umlnullptr[x=7,y=3,name=nullptr-1]{}
\begin{umlstruct}[x=3, y=0]{Punkt a}
\umlstructvalue[x=0,y=0, name=value1, type=double x, value=2]{}
\umlstructvalue[x=2,y=0, name=value2, type=double y, value=42]{}
\end{umlstruct}
\umlpointto{pointer2}{Punkt a}
\umlpointto[geometry=-|]{pointer3}{Punkt a}
\umlpointto{pointer4}{nullptr-1}
\umlpointto{pointer1}{value1}
\end{tikzpicture}
\end{document}