Is the sizeof operator in c a compile time or run time operator..Because the following code works fine with a gcc compiler
int a;
scanf("%d",&a);
printf("%d",sizeof(a));
But I found in one of the tutorials thatsizeof is compile time??Can someone please clear the confusion?