Do you get xp for transferring Pokemon?

When you transfer a Pokemon to the professor, do you get any xp?


Solution 1:

You do not gain anything but the candy for transferring a Pokemon to the Professor, save for a free Inventory slot.

Solution 2:

You get 1 candy for that Pokemon family, 0 experience and 0 stardust per transfer.