n1

1
2
3
4
5
5 int func1(int n, int n1)
6 {
7 n += 3;
8 n1 -= n;
9 return 2 + n + n1 * C;


could someone please help me with this. if n = 5 what is n1?

and n += 3, does that mean the sum of 5 and 3?
Last edited on
n += 3 is the same as n = n + 3.
n1 -= n is the same as n1 = n1 - n.

That should be enough to help you figure it out.
Since we don't know the incoming value of n1, or the value of C, we can't determine the return value of this function.
Last edited on
Topic archived. No new replies allowed.