Could someone please tell me if this is possible in C or C++?
void fun_a(); //int fun_b(); ... main(){ ... fun_a(); ... int fun_b(){ ...
The term you're looking for is nested function. Neither standard C nor C++ allow nested functions, but GNU C allows it as an extension. Here is a good wikipedia article on the subject.