some program while learning expert c programming