When you are combining different source files, it's not just a case of "copy and paste and re-arrange the lines" - you need to make more changes than that.

For example, you now have several variables all called "arr", "sum" and "pf" (for example). In some cases, you even have differing types.

Where the variables are identical (both type, name and content), you could just remove the duplicates.

In case where you have different types or values (content), you will need to change the name.

You are defining a function inside main:
Code:
void floating(float arr[],float *ave, float *sum)
{

for(ctr=0;ctr<=10;ctr++)
{
 a+=arr[ctr];
}
 b=a/10;
 *sum=a;
 *ave=b;
}
This is not valid C, each function must be defined outside any other function.

--
Mats