潇湘沐
#include<stdio.h> int max(int x,int y){ int z; z = x>y?x:y; return(z);}int min(int x,int y){ int z; z = x<y?x:y; return(z);}int add(int a,int b){ int z; z = a + b; return(z);}int process(int a,int b,int *fun()){ return(*fun)(a,b);}int main(){ int a,b; printf("Enter a and b:\n"); scanf("%d%d",&a,&b); printf("Max =%d\n",process(a,b,max)); printf("Min =%d\n",process(a,b,min)); printf("add =%d\n",process(a,b,add)); return(0);}