You were. I don't believe your program should compile cleanly (or perhaps even at all). Apart from having recursion in your program that would cause a stack overflow if used too much, you have an illegal definition of composite() - you have said it returns an integer value when it does not return anything. If this compiled, it would have surely made a warning.[/b]
Lol how come ive compiled it and it works then?

Try actually learning C before you criticize people, loser.