MIPI_BaseC_WebinarFRTK/04_Lecture04/03_solution_p14.c

17 lines
421 B
C
Raw Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
#include <inttypes.h>
int main()
{
int a = 5, b = 7;
printf("%d\n",(a += 5) * (b -= 3));
printf("a=%d,b=%d\n",a,b);
printf("%d\n",--b / (a++ - 3));
printf("a=%d,b=%d\n",a,b);
printf("%d\n",(a -= 2) || 47 / (b - 7));
printf("a=%d,b=%d\n",a,b);//a=9,b=3
printf("%d\n",(a *= b) + (b *= a));
printf("a=%d,b=%d\n",a,b);//неопределенность
return 0;
}