MIPI_BaseC_WebinarFRTK/12_Lecture12/07_macros_half_p31.c

12 lines
147 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#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;
}