Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 1, 2019 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/429c30d7ebed2e4af18a61570d4b6860 to your computer and use it in GitHub Desktop.
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/
#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