C CODE