³
³á³á³á³á
int i = 0;
i = sizeof( i++ );
What's the result of i¡H
I think the result may be sizeof( int ) or sizeof( int ) + 1, or it is
undefined behavior.
I know that i = i++ is undefined behavior,
but sizeof is calculated at compiling time.
--
[1;30m|[m
[32m ___[m
[32m(-_-)[m
[32m<¡ä¡ä>[1;30m¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w [1;37mªÅ´ßªª³õ [0;37mshepjeng.twbbs.org [1;30m¢w¢w¢w
[1;30m¡þ[m [36mplum.cs.nccu.edu.tw[m
i = sizeof( i++ );
What's the result of i¡H
I think the result may be sizeof( int ) or sizeof( int ) + 1, or it is
undefined behavior.
I know that i = i++ is undefined behavior,
but sizeof is calculated at compiling time.
--
[1;30m|[m
[32m ___[m
[32m(-_-)[m
[32m<¡ä¡ä>[1;30m¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w [1;37mªÅ´ßªª³õ [0;37mshepjeng.twbbs.org [1;30m¢w¢w¢w
[1;30m¡þ[m [36mplum.cs.nccu.edu.tw[m