MIPI_BaseC_WebinarFRTK/12_Lecture12/08_macros_half_2_p33.c
2024-11-13 09:22:28 +03:00

12 lines
151 B
C

#include <stdio.h>
#define HALF(x) ((x)/2)
int main(void)
{
int a=5, b;
b = HALF(a + 5);
printf("a = %d b = %d\n",a, b);
return 0;
}