  We have studied the azimuthal correlations between $\rm D^0$, $\rm D^+$ and
$\rm D^{*+}$ mesons and charged particles in pp collisions at
$\sqrt{s}=7~\mathrm{TeV}$ and p-Pb collisions at ${\sqrt{s_{\scriptscriptstyle
\rm NN}}}=5.02~\mathrm{TeV}$ at the Large Hadron Collider. D mesons were
reconstructed from their hadronic decays in the central rapidity region and in
the transverse-momentum range 3 $\le p_{T} \le$ 16 $\mathrm{GeV}/c$, and they
were correlated to charged particles reconstructed in the pseudo-rapidity range
$|\eta| < 0.8$. A comparative study of the pp results with Monte Carlo Pythia
studies and also with p-Pb results are presented here.
