/** * Pass-by-value * Variable inside t has different address than in main * * @author gtowell * Created: March 2021 * **/ #include /** * Function receives a value and changes it * @param gi -- the value received * **/ void t(int gi) { printf("TF %d %d\n", gi, &gi); gi = 7; printf("TF2 %d\n", gi, &gi); return; } int main(void) { int gi = 5; printf("TM %d %d\n", gi, &gi); t(gi); printf("TM2 %d\n", gi); }