examples/tests

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-08-23 13:50:26 +02:00
padre 953c3ad48d
commit 36bee15ae6
Se han modificado 89 ficheros con 1286 adiciones y 0 borrados

Ver fichero

@@ -0,0 +1,16 @@
#include <stdio.h>
int main() {
int a = 10;
int b = 20;
int *ptr1 = &a;
int *ptr2 = &b;
// Swap the pointer targets
*ptr1 = *ptr1 + *ptr2;
*ptr2 = *ptr1 - *ptr2;
*ptr1 = *ptr1 - *ptr2;
printf("Swapped values: a=%d, b=%d\n", a, b);
return 0;
}