Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Magic, why 1 2?
#include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; int main() { int *a = (int*)malloc(sizeof(int)); int *b = (int*)realloc(a, sizeof(int)); *a = 1; *b = 2; if (a == b) printf("%d %d\n", *a, *b); return 0; }
run
|
edit
|
history
|
help
0
hello,world !ssn2019
lref assignment
Dynamically allocated array in unique_ptr with custom deleter.
std::function copies
DESim Example
PrintAddress
even number
Unpacking tuple
Virtual Function Example
hello world