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 PostIncrement the object pointed to by p, then increment the pointer p (point to the next object).
#include <stdio.h> int main(void) { char text[] = "1b#", *p = text; printf("text = \"%s\", p(%p) = \"%s\", *p = '%c'\n", text, (void*)p, p, *p); ++*p++; printf("text = \"%s\", p(%p) …
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.