Some problems resolved by me in C