9
examples/tests/ptr_assign_test.c
Archivo normal
9
examples/tests/ptr_assign_test.c
Archivo normal
@@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int x = 42;
|
||||
int *ptr = &x;
|
||||
*ptr = 100;
|
||||
printf("x = %d\n", x);
|
||||
return 0;
|
||||
}
|
||||
Referencia en una nueva incidencia
Block a user