MIPI_BaseC_WebinarFRTK/25_Seminar12/03_macros_max_p11.c

12 lines
160 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
#define MAX(a,b) ((a)>=(b)?(a):(b))
int main(void)
{
int a=5, b=7, c;
c = MAX(a,++b) ;
printf("c = %d\n", c);
return 0;
}