9 lines
101 B
C++
9 lines
101 B
C++
int *p = nullptr;
|
|
...
|
|
if (p == nullptr){
|
|
// do some thing
|
|
}
|
|
//or just
|
|
if (p){
|
|
// do some thing
|
|
}
|