Playground
#include <cstring> #include <iostream> using namespace std; int main() { char s1[6], s2[2]; strcpy(s2, "0 "); //s2="0 " strcpy(s1, "POENI"); //s1="POENI" cout << s2 << endl; // na nekoi kompjuteri ovaa programa // kje ispechati "0 POENI" namesto "0 " return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!