Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Fun with Pointers #1
// pointer example from diagnostics #include <iostream> using namespace std; int main () { int *foo, *foo2; foo = new int[5]; for (int i=0; i<5; i++) { foo[i] = i; } foo2 = foo; foo2++; cout << foo2[0]; return 0; }
run
|
edit
|
history
|
help
0
Balanced Insert Example
selection sort
Variadic Template: Make Index Sequence
Template Meta Programming
Tree Example
Rounding float to nearest 1000 (fixed)
move_string
Unlike C (even C99/C11), C++ allows initializers in if-conditions, so this compiles.
Linker error while passing constexpr variable as const &
lref assignment