We’re rewarding the question askers & reputations are being recalculated! Read more.
2 deleted 60 characters in body
source | link
#include <stdio.h>

int c[1]; 
int main() { 
   struct c { int cpp[0];cpp[2]; }; 
   printf("%d\n", (int)sizeof(c)/4);
}

C returns 1; C++ returns 0. I hope it is not too obvious...

#include <stdio.h>

int c[1]; 
int main() { 
   struct c { int cpp[0]; }; 
   printf("%d\n", (int)sizeof(c)/4);
}

C returns 1; C++ returns 0. I hope it is not too obvious...

#include <stdio.h>

int c[1]; 
int main() { 
   struct c { int cpp[2]; }; 
   printf("%d\n", (int)sizeof(c)/4);
}
1
source | link

#include <stdio.h>

int c[1]; 
int main() { 
   struct c { int cpp[0]; }; 
   printf("%d\n", (int)sizeof(c)/4);
}

C returns 1; C++ returns 0. I hope it is not too obvious...