Editing 138: Pointers
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
== Explanation == | == Explanation == | ||
− | This comic is about a play on the dual meaning of the word "pointer." [[Cueball]] is playing a video game, but he seems to be stuck. So he asks [[Black Hat]] for a few tips ("pointers") to progress in the game. Black Hat is, as usual, annoying, so he spits out a couple of (seemingly random) 32-bit hexadecimal addresses, which are "{{w|Pointer (computer programming)|pointers}}" in a programming language. These pointers are used to access a certain location in the computer's memory in order to fulfill a task; however, this would not be helpful in | + | This comic is about a play on the dual meaning of the word "pointer." [[Cueball]] is playing a video game, but he seems to be stuck. So he asks [[Black Hat]] for a few tips ("pointers") to progress in the game. Black Hat is, as usual, annoying, so he spits out a couple of (seemingly random) 32-bit hexadecimal addresses, which are "{{w|Pointer (computer programming)|pointers}}" in a programming language. These pointers are used to access a certain location in the computer's memory in order to fulfill a task; however, this would not be helpful in the game. Cueball is then annoyed at [[Black Hat]] for not answering his question. |
− | A {{w|segmentation fault}}, as referred to in the title text, is a result by accessing invalid memory addresses. If you define a pointer to an invalid address, then try to access the memory location associated with it, you could end up with this exception. The hexadecimal address 0x-1 is definitely invalid, because it's out of range. If you treat pointers as signed numbers, it points below the lowest address, 0; if you treat them as unsigned (meaning the numbers wrap around, so -1 is the same as the highest address - 0xFFFFFFFF on a 32-bit system), if it's pointing at any object larger than a byte, most of that object is past the highest address. So, this is a "hidden location," but as soon as you try to read more than one byte at that location, you will get a segfault | + | A {{w|segmentation fault}}, as referred to in the title text, is a result by accessing invalid memory addresses. If you define a pointer to an invalid address, then try to access the memory location associated with it, you could end up with this exception. The hexadecimal address 0x-1 is definitely invalid, because it's out of range. If you treat pointers as signed numbers, it points below the lowest address, 0; if you treat them as unsigned (meaning the numbers wrap around, so -1 is the same as the highest address - 0xFFFFFFFF on a 32-bit system), if it's pointing at any object larger than a byte, most of that object is past the highest address. So, this is a "hidden location," but as soon as you try to read more than one byte at that location, you will get a segfault. |
The ending letters of the pointers are spelling, reading top to bottom, the word ACE. As Cueball is playing a game, Black Hat could be additionally saying that he's an ace of the game. | The ending letters of the pointers are spelling, reading top to bottom, the word ACE. As Cueball is playing a game, Black Hat could be additionally saying that he's an ace of the game. | ||
=== Alternate Explanation === | === Alternate Explanation === | ||
− | Pointers are often used to cheat in games and do things like change the amount of money you have | + | Pointers are often used to cheat in games and do things like change the amount of money you have. The pointers Black Hat spits out could also be cheat codes giving an extra reason for Cueball to hate him. |
− | |||
− | The | ||
==Transcript== | ==Transcript== | ||
Line 24: | Line 22: | ||
:Black Hat: 0x3A28213A 0x6339392C, 0x7363682E. | :Black Hat: 0x3A28213A 0x6339392C, 0x7363682E. | ||
:Cueball: I hate you. | :Cueball: I hate you. | ||
− | |||
− | |||
− | |||
{{Comic discussion}} | {{Comic discussion}} | ||
[[Category:Comics featuring Black Hat]] | [[Category:Comics featuring Black Hat]] | ||
[[Category:Comics featuring Cueball]] | [[Category:Comics featuring Cueball]] | ||
− | |||
− | |||
− |