Option buying and selling

When I buy an option, I have to pay premium to the seller.If i sell the same option in the

evening,will I get premium prevailing at that time from buyer?

When you buy an option, the value of premium is debited from your account and credited to the person who sold/wrote the options. 

Read the below mentioned 2 chapters you should understand all about Option's.

Buying a Call Option - Zerodha Varsity

Selling/Writing a Call Option - Zerodha Varsity