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
-fno-elide-constructors
virtual function role
Partition to K Equal Sum Subsets
Beadandó
st_match
Dar
Test
-Wall -std=c++14 -O0 -o a.out source_file.cpp
Matrix spiral print
ProPriceTemp