Wednesday, 4 January 2012

Placement Question-1

What is the output of the following program ?
void main()

int const * p=5; printf("%d",++(*p));


Compiler error: Cannot modify a constant value.
p is a pointer to a "constant integer". But we tried to change the
value of the "constant integer".

No comments:

Post a Comment

host gator coupon