#include <iostream>
#include <bitset>
using namespace std;
int main(int argc, char **argv)
{
char *x1=nullptr;
char *x2="hello";
auto funtest=[](char *myStr)->void{
if (myStr!=nullptr){
cout<<myStr<<endl;
}
else{
cout<<"nullptr"<<endl;
}
};
funtest(x1);
funtest(x2);
}
nullptr
hello
Hit any key to continue...