c programming pitfalls