RosettaCodeData/Task/Gotchas/C/gotchas-12.c

5 lines
188 B
C
Raw Permalink Normal View History

2025-02-27 18:35:13 -05:00
int x = 3;
int y = 5;
printf("%d %d %x\n",x,y); /* this may crash or print undefined values after 3 5 */
printf("testing %n\n"); /* this writes the int value 8 to an undefined location */