N
nish.parikh
Hi,
I am using std::cout to print a char pointer that is NULL. Subsequent
calls to std::cout dont print anything. Is this the expected behavior?
example:
#include <iostream>
int main( int argc, char *argv[] ) {
char *q = 0;
std::cout << q << "\n";
std::cout << "Program ended\n";
}
Program ended does not get printed when i run this program.
I am working on solaris platform with gcc 3.2.2.
Let me know if this is not the correct group for such questions.
Any help would be appreciated.
Thanks,
Nish.
I am using std::cout to print a char pointer that is NULL. Subsequent
calls to std::cout dont print anything. Is this the expected behavior?
example:
#include <iostream>
int main( int argc, char *argv[] ) {
char *q = 0;
std::cout << q << "\n";
std::cout << "Program ended\n";
}
Program ended does not get printed when i run this program.
I am working on solaris platform with gcc 3.2.2.
Let me know if this is not the correct group for such questions.
Any help would be appreciated.
Thanks,
Nish.