Social Sciences, asked by Anonymous, 1 year ago

main()
{
int x = 10;
{
int x = 0;
printf("%d",x);
}
}


(A) 10
(B) Compilation Error
(C) 0
(D) Undefined

Answers

Answered by GhaintMunda45
1

(C) 0 => Correct Option

The nearest number that will print is x = 10

Because,

First, x = 0

Second x = 10

Answered by SwaggerGabru
0

\huge\underline{\overline{\mid{\bold{\pink{ANSWER-}}\mid}}}

the answer is 10,16.

because x=x++;

means first assign after that that is incremented.

in case of y=++y;

first increment operation is performed. after that assigned.

Hence, option ( a )

Similar questions