Firstly, it is highly unlikely that this will ever happen. During your Scuba course, you will be taught how to monitor your air supply frequently and you will learn that we never dive until the tank is empty, we always end the dive before air supply becomes an issue. You will also learn several different ways to deal with an “out of air situation” safely so in the unlikely event that you did run out you will have the skills required to manage the situation.