Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Silly circular pointer
//g++ 7.4.0 #include <iostream> int main() { void* y; y=&y; *(int**)y=(int*)y; std::cout << (void*)y << "\n"; std::cout << (void*)*(int**)y << "\n"; std::cout << (void*)********(int*********)y << "\n\n"; // they're all the same, since y points to itself std::cout << *(long*)y << "\n"; std::cout << **(long**)y << "\n"; std::cout << ********(long********)y; // also all the same }
run
|
edit
|
history
|
help
0
Speed
Funny Saying
Conjuntos - Comparar cantidad de elementos únicos en 2 vectores
Print Euler Path
Test 17(2021)
Template HeapSort
all possible palindrome partitions
TraiectorieIdeala
PayTax
char array in class