This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/C20/macro_function_example.c
2022-04-08 16:12:38 +01:00

8 lines
163 B
C

#include <stdio.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
int main(void)
{
printf("The minimum value of 10 and 20 is: %d\n", MIN(10,20));
return 0;
}