I guess i'm missing something basic, but i'm new to C++ and do not know how do these streams behave.
Can someone please explain why no text is printed to the screen in the following example:
#include <iostream>
using namespace std;
int main (void)
{
char *ptr = NULL;
cout << ptr << "This is a sample text." << endl;
return 0;
}