adplus-dvertising
frame-decoration

Question

What will be output of the following c code?
#include<stdio.h>
int main()
{
    const int *p;
    int a=10;
    p=&a;
    printf("%d",*p);
    return 0;
}

a.

0

b.

10

c.

Garbage Value

d.

Any Memory address

Answer: (b).10

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be output of the following c code?