Explanation:
You can find the direction of electric field by finding the direction of force acting on test small +ve charge put in the field:
When you put +ve charge next to protons, the force on +ve charge is pointed away from protons, because like charge repel