Saba_6 -3 Newbie Poster

Hi, I am getting erros in coverting the following C++ code to C language.

Also what is the alternative of #include<bits/stdc++.h> library in C language?

// C++ Implementation to find the  
// XOR of the two Binary Strings 

#include<bits/stdc++.h> 
using namespace std; 

// Function to find the  
// XOR of the two Binary Strings 
string xoring(string a, string b, int n){ 
string ans = ""; 

    // Loop to iterate over the 
    // Binary Strings 
    for (int i = 0; i < n; i++) 
    { 
        // If the Character matches 
        if (a[i] == b[i]) 
            ans += "0"; 
        else
            ans += "1"; 
    } 
    return ans; 
} 

// Driver Code 
int main() 
{ 
    string a = "1010"; 
    string b = "1101"; 
    int n = a.length(); 
    string c = xoring(a, b, n); 
    cout << c << endl; 
}