Ask Question
9 August, 18:34

What does the following code print?

#include void func (int x, int * yPtr, int * zPtr) { * yPtr + = 3; * zPtr + = 4; x + = 5; } int main () { int a, * bPtr, c; a = 5; bPtr = &a; c = * bPtr; * bPtr + = 2; c + = 3; func (c, bPtr, &c); printf ("%d/n", a + * bPtr + c); return 0; }

a. 32

b. 36

c. 51

d. 30

e. none of above

+4
Answers (1)
  1. 9 August, 19:48
    0
    a. 32

    Explanation:

    Form the above code

    { * yPtr + =3;

    *zPtr,

    c+=3;

    func (c, bPTR,&c);

    the a=*bPtr c

    return value 32 after execution
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What does the following code print? #include void func (int x, int * yPtr, int * zPtr) { * yPtr + = 3; * zPtr + = 4; x + = 5; } int main () ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers