C语言:每个.C的C语言源程序不都包含一个main函数,每个.c源程序都可以单独进行编译(证明)

//文件名o531a.c 
#include <stdio.h>
#include "0530-1.c"
main()
{

    printf("%d",pd(2));

    getchar();
 }
#include <stdio.h>
int pd(int a)
{
    if(a%2==0) return 1;
    else return 0;
}

 

 

posted @ 2022-05-30 10:56  myrj  阅读(414)  评论(0编辑  收藏  举报