  The D meson yields as a function of charged-particle multiplicity in pp
collisions at $\sqrt{s}=7$ TeV and in p-Pb collisions at
$\sqrt{s_{\mathrm{NN}}}=5.02$ TeV are presented. The measurement of the yields
of electrons from heavy-flavour hadron decays as a function of charged-particle
multiplicity in p-Pb collisions at $\sqrt{s_{\mathrm{NN}}}=5.02$ TeV are shown
as well. The measurement of azimuthal correlations of prompt D mesons and
charged hadrons in pp collisions at $\sqrt{s}=7$ TeV and in p-Pb collisions at
$\sqrt{s_{\mathrm{NN}}}=5.02$ TeV are also presented. The results are compared
with expectations from models.
