A
Al Vazquez
Should one first declare empty functions in main and define the
functions below main like so:
int main()
{
int function1(), function2();
function1("hello world");
printf("%d",function2(1,2));
return 1;
}
int function1(char s[])
{
printf("%s";s[]);
return 1;
}
int function2(int a, int b)
{
return a+b;
}
or should one define the functions above main and leave main at the
bottom of all the code? Is this defined in the standard?
TIA,
A.V.
functions below main like so:
int main()
{
int function1(), function2();
function1("hello world");
printf("%d",function2(1,2));
return 1;
}
int function1(char s[])
{
printf("%s";s[]);
return 1;
}
int function2(int a, int b)
{
return a+b;
}
or should one define the functions above main and leave main at the
bottom of all the code? Is this defined in the standard?
TIA,
A.V.