Doubt on pointers

need explanation on question no…4 and 8