#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
s[0] = 'a';
cout << s << endl;
return 0;
}
I used this code and ran, but no output is coming don't know why?
But if am using s = ""; then also no output.
But when I use s = " "; then output comes why does this happen?
See Question&Answers more detail:os