consider the statement
++*p++
if it is valid then evaluate it.
Sukhbir 0 Light Poster
Recommended Answers
Jump to PostHello,
I am no C++ genius, but
++*p++
Cannot be a statement by itself, as there is no ; to finish it.
I am trying to remember if *p is significant. I know that &p is... the address of the variable p. p++ is just an …
Jump to PostHello,
I stand corrected. Reading another post in the forum, people apparently do use ++variable syntax. I always took the style of variable++ and went with it to avoid confusion.
So
++p would be valid.
++*p++ I think is a problem.
Christian
All 6 Replies
kc0arf 68 Posting Virtuoso Team Colleague
Dave Sinkula 2,398 long time no c Team Colleague
kc0arf 68 Posting Virtuoso Team Colleague
Stack Overflow 8 Junior Poster
Decency 0 Newbie Poster
XianBin 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.