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/Exercises/C20/macro_function_example.c

8 lines
163 B
C
Raw Permalink Normal View History

2022-04-08 15:12:38 +00:00
#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;
}