Although the following are legal, they probably do not behave as the programmer expects
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:4| Question number:4.16
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.16
total answers (1)
`if (p = getPtr() != 0)` is the same with `if (p = (getPtr() != 0))` and should be `if ((p = getPtr()) != 0)`.
`if (i = 1024)` may be `if (i == 1024)`.
need an explanation for this answer? contact us directly to get an explanation for this answer