- Joined
- Feb 22, 2022
- Messages
- 2
- Reaction score
- 0
Evaluate p+=++p+p++ initially if p=10
p += ++p + p++
p += (++p) + (p++)
p += (11) + (12)
p += 23
p = 12 + 23
p = 35
#include <stdio.h>
int main(){
int p = 10;
p += ++p + p++;
printf("%d\n", p); // 35
return 0;
}
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.