Re: The sizeof operator : sizeof(++i)
Kislay wrote:
> int main()
> {
> int i=10;
> printf("\n Size of i = %d ",sizeof(++i));
> printf("\n i = %d ",i);
> system("pause");
> return 0;
> }
>
> On executing the above code , the value of i obtained as 10 . What
> happens to the increment ? Why does not not that take place ? Has it
> got something to do with the fact that sizeof is a compile-time
> operator ?
sizeof doesn't evaluate its operand.
|