blog:2023-12-08_c_char_0_0
2023-12-08 C++: *(char*)0 = 0;
Voide
Notes
*(char*)0 = 0:
1, Casting Zero to a Pointer: (char*)0 casts the integer 0 to a pointer, pointing to memory address 0.
2, Dereferencing: The * operator is then used to dereference this pointer, meaning we're trying to access the value at this memory location.
3, Writing to Address 0: The whole expression attempts to assign 0 to this location.
Permalink blog/2023-12-08_c_char_0_0.txt · Last modified: 2023/12/08 11:23 by
jethro