/*L*/

/*[‚bŒ¾Œê]ƒTƒ“ƒvƒ‹ƒvƒƒOƒ‰ƒ€W@Å‘å’lƒ\[ƒX‚Q*/

/*–ÚŽŸ‚Ö–ß‚é*/

#include <stdio.h> int my_max(int *,int); int main(){ int ary[5] = {1,25,3,8,10}; int max = 0; int i; max = my_max(ary,sizeof(ary) / sizeof(int)); for(i=0;i<5;i++){ printf("%d ",ary[i]); } printf("\n"); printf("max = %d",max); return 0; } int my_max(int *ary,int size){ int max = 0; int i; max = *ary; for(i=1;i<size;i++){ if(max < *(ary + i)){ max = *(ary + i); } } return max; }

/*ƒy[ƒW‚̐擪‚Ö*/

/*–ÚŽŸ‚Ö–ß‚é*/

/*HOME*/

/*Copyright 2016 K.N/petitetech.com*/

/*L*/