, , , . , :
int foo(int *a, int *b)
{
*a = 5;
*b = 6;
return (*a + *b);
}
? 11, . 11, a == b, 12, , , b, . , , ,
1) stores 5 to a
2) stores 6 to b
3) loads a into a temporary register
4) adds the temp and 6
5) returns the sum
, a == b , , , , .
int foo(int * restrict a, int * restrict b)
, , :
1) store 5 to a
2) store 6 to b
3) return 11
, , . , , , , , () , , .