Q. If a function is declared as void fn(int *p), then which of the following statements is valid to call function fn? (Solved)

1. fn(x) where x is defined as int x;

2. fn(x) where x is defined as int *x;

3. fn(&x) where x is defined as int *x;

4. fn(*x) where x is defined as int *x;

  • b. fn(x) where x is defined as int *x;
Subscribe Now

Get All Updates & News