c语言中,接口函数怎么检查参数个数呢?

主程序在这里,定死不能动

#include <stdio.h>

int factorsum( int number );

void PrintPN( int m, int n );

int main()

{

    int m, n;

    scanf("%d %d", &m, &n);

    if ( factorsum(m) == m )

        printf("%d is a perfect number\n", m);

   if ( factorsum(n) == n )

        printf("%d is a perfect number\n", n);

     PrintPN(m, n);

   return 0;

}

/* 

 函数PrintPN:逐行输出给定范围[m, n]内..........

*/

我写好接口函数,然后测试

 网站的测试点中,只有一个参数6时,感觉有点奇怪,为啥只单走一个参数?

如果真的只有一个参数时,接口函数怎么检查参数个数呢?

一般这种题目,要两个参数的,只有一个6不是要return false的吗