That expression is calculated as follows:
First a gets decreased by 1 twice (--a) BEFORE they are added together
(a++)+a means that a will be increased by 1 AFTER it has been added with a again. And since a is never used again after this it doesn't matter that a=6 now.
Hence we get: