+ 3

What is the problem with below code?

#include <iostream> #include <string.h> #include <stdlib.h> using namespace std; int main() { char buf[2]; memcpy(buf,"05",2); cout<<buf<<endl; }

10th Oct 2017, 5:37 PM
$±𝐎â‚č𝔭!𝐹𝓝
$±𝐎â‚č𝔭!𝐹𝓝 - avatar
1 Answer