Ask Question

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

+2
Answers (1)
  1. 3 December, 18:16
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers