Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Este codigo seguramente produzca un segmentation fault :) */
- /* Compilar en línea de comandos con:
- * gcc segfault.c -o segfault
- *
- * Ejecutar con:
- * ./segfault
- */
- int main(int argc, const char *argv[]){
- int *ptr;
- *(ptr + 1000000) = 10;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement