20
examples/tests/compound_operators_test.c
Archivo normal
20
examples/tests/compound_operators_test.c
Archivo normal
@@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int x = 10;
|
||||
printf("Initial x = %d\n", x);
|
||||
|
||||
x += 5;
|
||||
printf("After x += 5: %d\n", x);
|
||||
|
||||
x -= 3;
|
||||
printf("After x -= 3: %d\n", x);
|
||||
|
||||
x *= 2;
|
||||
printf("After x *= 2: %d\n", x);
|
||||
|
||||
x /= 4;
|
||||
printf("After x /= 4: %d\n", x);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Referencia en una nueva incidencia
Block a user