Ask Question
9 July, 11:48

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 July, 13:10
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers