Why U am getting only 0 as o/p on console in sample tc?

I should get full 00111 as o/p on console which i m getting in code blocks terminal.

Yes u have to output exact the xor

Thats what I am saying the output is coming on code blocks but here it is showing only the 1st digit of xor ??

Here is the link https://ide.codingblocks.com/s/157066

Hi Naman
U r inputing the string in wrong way
When u input string simaltaneous then the second string have always null character in it due to ur hitting of enter after inputing first string
For see this just cout both string after cin them

For solution
Either use char array for both
Or use cin.ignore()
After inputing 1 string than input another.

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.