Below is the sample code, Where size of a is not defined at the time of compilation,
Then how compiler knows the size of a? If we run the same program in C then compilation will fail.
#include<iostream>
using namespace std;
main()
{
string a;
cin>>a;
cout<<a;
}