please tell why my code is not giving any output and please send the corrected link
Please tell why my code is not giving any output
hello @harryson
a) u should read string as cin>>str1;
b)You should add null charater at the end of ur str3.
c) u should assign character to str3[i] i.e str[i] is either equal to ‘1’ or ‘0’ but
u are assigning 0 or 1 which is integer.
check ur updated code here->
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.