calling functions

can i call a function declared after the function i'm calling it in?


for example:

int fun1()
{
fun2();
return 0;
}

int fun2()
{
return 0;
}
and if yes how can i do it?
You can do that if you declare the function before you call it.

1
2
3
4
5
6
7
8
9
10
11
12
int fun2();

int fun1()
{
	fun2();
	return 0;
}

int fun2()
{
	return 0;
}
tried it and its working perfectly
thanks dude
yeah, it's hard to try to make a complex program without calling user-defined functions inside other user-defined functions... its like functionception...
Topic archived. No new replies allowed.