Category gate questions on c programming