Ultra fast mathematiciaprobn

#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t–)
{
char a[101],b[101];
cin>>a>>b;
char c[101];
for(int i=0;a[i]!=’\0’;i++)
{
if(a[i]!=b[i])
c[i]=‘1’;
else
c[i]=‘0’;
}
cout<<c<<endl;
}
}

which test case it is not passing??

Hi @singhalharsh10081999
instead of using arrays use strings in this question as when you are printing c then it is of size 101 and may be the string you have entered is less than that size so it is printing some extra characters too,that is why your code is not working.