Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Buggy Strcat
#include <iostream> #include <string.h> const char* strcat(const char* a, const char* b) { char buf[512]; size_t aLen = strlen(a); strcpy(buf, a); strcpy(buf+aLen, b); return buf; } int main() { const char* a = "hello, "; const char* b = "world"; std::cout << strcat(a, b) << std::endl; return 0; }
run
|
edit
|
history
|
help
0
decltype_lambda
Error with move capture of a const ref in a lambda function
trying to find if reinterpret_cast preserves calling convention
Generic EventProvider
Fibonacci stairs
kkk
Sorting algorithm comparison
define_xml_tags
operator new / delete
Copy initialization: overload resolution issue