Hi there again :) Could someone tell me what is the difference between function declare in main() and outside main() ? Because I don't see anything wrong.
Thanks so much in advance.
Here is example,
#include <stdio.h>
//void fun(int x,int y, int z);
int main()
{
void fun(int x,int y, int z); //Function inside main
int a,b,c;
printf("...");
scanf("...",...);
printf("...");
fun(x,y,z);
getchar();
return 0;
}
void fun(int x,int y, int z)
{
........
printf("");
}