Hi

So far I have always seen function declarations of user-defined functions being made before the main( ). But I have seen someone who made the declaration within the main( ) for a functions which returns a value? Is this correct? Can we also do this for functions which returns nothing - I mean of void return type?

I don't have a compiler on my computer right now so can't test it? Please help me. Thanks.