Find Output: int fun(int *p) { *p = *p + 10; return *p; } int main() { int x = 5; cout << fun(&x); return 0; }

Find Output:

int fun(int *p) {
    *p = *p + 10;
    return *p;
}
int main() {
    int x = 5;
    cout << fun(&x);
    return 0;
}
  1. a) 15
  2. b) 10
  3. c) 25
  4. d) 5

From the BB Assistant Director (ICT) February 2025 – Written (DU) exam, question 1 of 55.

More from this paper