Afficher un message
Vieux 18/10/2007, 11h22   #1
Kislay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut The sizeof operator : sizeof(++i)

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 ?

  Réponse avec citation
 
Page generated in 0,04929 seconds with 9 queries