가변 인수를 가지는 함수 및 매크로 만들기
Posted by Go crazy for anything that will make you smile.
출처 : http://uuzazuk9.egloos.com/906491 ANSI C 버전 ================================================================================ #include #include int average(int first, ...); void main( void ) { /* Call with 3 integers (-1 is used as terminator). */ printf("Average is: %dn", average(2, 3, 4, -1)); /* Call with 4 integers. */ printf("Average is: %dn", average(5, 7, 9, 11, -1)); /* Call with jus..