17

Story of childhood me learning about pointers in C.

Thinking of writing cool stuff like a virus that deletes all the programs loaded in the RAM, crashing the system:

void main() {
char m = 'c';
char* p = &m;
while(true) {
*p = '';
p++;
}
}

Later learned that OS allocates guarded memory for each program. ;(

Comments
Add Comment