Created
August 1, 2019 15:36
-
-
Save parzibyte/429c30d7ebed2e4af18a61570d4b6860 to your computer and use it in GitHub Desktop.
Desbordamiento de entero sin signo en C - https://parzibyte.me/blog/2018/10/05/desbordamiento-en-c/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
unsigned int numero = 4294967295; | |
printf("El numero, sin modificar es %u\n", numero); | |
numero = numero + 1; // O numero++ | |
printf("El numero, despues de aumentarle 1 es %u\n", numero); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment