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
Nadpisanie metod
Hashing
XD
顺序表的实现——动态分配
Print reverese string non repeated chars
Decimal to Binary
Dar
Dynamic Programming For Combinatorics - 1
queue
DP on Trees: Type B (In/out Dp)