adplus-dvertising
frame-decoration

Question

What is the output of this program? (Assume that base address of a is 1000 and size of integer is 32 bit)
int main()
{
    int a[10];
    a++;
    printf("%u", a);
    return 0;
}

a.

1004

b.

1002

c.

1008

d.

Lvalue Required

Posted under C Programming

Answer: (d).Lvalue Required

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 this program? (Assume that base address of a is 1000 and size of integer is 32 bit)