--- layout: post author: Pascal Cuoq date: 2011-09-09 16:07 +0200 categories: facetious-colleagues format: xhtml title: "Fun with constants" summary: --- {% raw %}

Another facetious colleague reports a strange behavior with the following C program:

int main (void) { 
 int x = 100; 
 int y = 042; 
 int z = 005; 
 printf (\%d"  x+y+z); 
 return (x+y+z) - 147; 
} 
{% endraw %}