Nice!, so how do I "return" an array? Got everything else working.

Code:

#include "stdafx.h"
#define size 100
int calcPrimes(int arr[size]);
int countPrimes(int arr[size]);
void printPrimes(int arr[size],int,int);
int main()
{
/* Declaration of Variables */
int arr[size],primecount;
arr[size]=calcPrimes(arr);
primecount=countPrimes(arr);
printPrimes(arr,primecount,size);
return 0;
}
/* Function to fill the array and calculate primes */
int calcArray(int arr[size]){
int j=1,i,remainder;
for(i = 0;i < size; i++)
{
arr[i] = j++;
}
for(j = 2; j <= size; j++)
{
for(i = j; i < size; i++)
{
remainder = arr[i] % j;
if(remainder == 0)
arr[i] = 0;
}
}
return arr;
}
/* Count the prime numbers in the array */
int countPrimes(int arr[size]){
int primecount=0;
for(int i=0;i<size;i++){
if (arr[i]!=0)
primecount++;
}
return primecount;
}
/* Print the amount of prime numbers calculated. */
void printPrimes(int arr[size], int primecount, int max){
for(int i = 0; i < size; i++)
{
if (arr[i]!=0)
printf("%d ",arr[i]);
}
printf("\nThere are %d prime numbers up to %d.\n\n",primecount,max);
}

Currently getting error message: "error C2440: 'return' : cannot convert from 'int []' to 'int'" What does my function type need to be?