c programming exam solution 2014, july