Mixing C and arduino code.

Will it work if I mix C and arduino code? I added a few lines of C and it seemed to compile fine. But its not working unfortunately. Is there something else i need to do apart from just adding the C code?

Yes, you need to
a) Tell us what your code does that it shouldn't
b) tell us what your code doesn't do that it should
c) show us your code.