Computer Science, asked by karunakar5316, 9 months ago

Int f(int n){int ans = 0;for (int i=1;i<n;i++){if (i<n/2){ans - = i;}else{ans += i;}}return ans;}what does f(5) evaluate to?hint- don't forget that dividing integer result in an integer ans for example :9/4 =2​

Answers

Answered by Anonymous
0

Answer:

int f(int x, int *py, int **ppz)

{

int y, z;

**ppz += 1;

z = **ppz;

*py += 2;

y = *py;

x += 3;

return x + y + z;

}

void main()

{

int c, *b, **a;

c = 4;

b = &c;

a = &b;

printf( "%d", f(c,b,a));

getchar();

}

Explanation:

19

Similar questions