Explain the behavior of the condition in the following if
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:4| Question number:4.9
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:4| Question number:4.9
total answers (1)
The condition `cp && *cp` means if `cp` is not a null pointer and the object pointed by `cp` is not null, 0 or can be converted to false.