our last ex in advanced c programming