Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Mock Interview Question
#include <iostream> #pragma GCC \ diagnostic \ ignored \ "-Wreturn-stack-address" #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
<string> No indirect include of <errno.h>
Virtual Function Example
Tilted uniform distribution random number generator over min/max range
ArrayList Example Starter Code 2
Test size_t
A
Error
Te
std::99 bottles of beer!
HTML Timetable generator.cpp