Assuming p is a pointer to int, explain the following code
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:2| Question number:2.22
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:2| Question number:2.22
total answers (1)
need an explanation for this answer? contact us directly to get an explanation for this answer`if (p)`
means if the pointer `p
` is not null.`if (*p)`
means if the object pointed by the pointer is not false (which means the object is not null or zero etc.).