c code comparising