i cant understand what does ++*++p means???
can u help me
member9 8 Newbie Poster
tux4life commented: Yes, start a new thread about it! -2
siddhant3s commented: Atleast He followed the advice. +14
Nick Evan commented: No he didn't. Mod split it off another thread :) -4
Recommended Answers
Jump to Posti cant understand what does ++*++p means???
can u help meConsider the following code:
#include <iostream> int main() { int a[5] = {0, 5, 2, 3, 4}; int *p = a; ++*++p; std::cout << a[1] << std::endl; return 0; } /* Output: 6 */
Explanation:
The …
Jump to PostThat was the title of the original thread.
All 5 Replies
tux4life 2,072 Postaholic
shadwickman commented: Good explanation of ++*++p - I learned something new too :P +3
member9 8 Newbie Poster

jencas
tux4life 2,072 Postaholic
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured 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.