Duvida sobre calculo em C

Viewed 23

Bom dia. Tenho uma duvida quanto ao calculo que está sendo feita nesta soma em C. Testei no compilador e vejo que o resultado é 9, mas queria entender a ordem que é feita para chegar neste valor.

(Via Google Translate: Good morning. I have a doubt as to the calculation that is being made in this sum in C. I tested in the compiler and I see that the result is 9, but I wanted to understand the order that is made to get at this value.)

#include <stdio.h>

int main()
{
    int *p, **r, a = -1, c, b=10;
    p = &a;
    r = &p;

    c = **r + b--;
    
    printf("%d\n",c);

    printf("%d + %d",**r,b--);
}
0 Answers
Related