Under what situations may I withdraw my cash from the bank?

a)  Salary payment

b)  Petty cash