Script started on Mon Oct 5 17:27:57 2026 Restored session: Wed Sep 30 18:43:35 EDT 2026 macbook:Desktop> cat q10 If the return type is omitted, the function is presumed to return a value of type float macbook:Desktop> macbook:Desktop> macbook:Desktop> vi call_by_val.c macbook:Desktop> gcc call_by_val.c macbook:Desktop> cat call_by_val.c #include int power(int x, int n) { int result = 1; while (n-- > 0) result *= x; return result; } int main() { int a = 4, b=5; printf("a and b are %d and %d before the fn call\n", a, b); printf("power(a,b) is %d\n", power(a,b)); printf("a and b are %d and %d after the fn call\n", a, b); return 0; } macbook:Desktop> ./a.out a and b are 4 and 5 before the fn call power(a,b) is 1024 a and b are 4 and 5 after the fn call macbook:Desktop> exit Saving session... ...saving history...truncating history files... ...completed. Deleting expired sessions...none found. Script done on Mon Oct 5 18:45:09 2026