adplus-dvertising
frame-decoration

Question

What is the output of C Program with functions and pointers?
int main()
{
    int b=25;
    //b memory location=1234;
    int *p = b;
    printf("%d %d", b, p);

    return 0;
}

a.

25 1234

b.

25 0

c.

25 25

d.

Compiler error

Posted under C Programming

Answer: (c).25 25

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of C Program with functions and pointers?