It is given in the STL reference that string class is in string header,then without including the header how the following program is running without an error??
#include<iostream>
using namespace std;
int main() {
string s;
cin>>s;
cout<<"string entered is : "<<s;
}
I am using a g++ complier on ubuntu machine.