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;
    p=&b;
    printf("%d %d %d", &b, p);
    return 0;
}

a.

25 25

b.

1234 1234

c.

25 1234

d.

1234 25

Posted under C Programming

Answer: (b).1234 1234

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?