1. C function gives wrong result when function call on main is refactored

    C function gives wrong result when function call on main is refactored