In the below code ,variable 'b' holds value '133' which is quite straight forward. How about variable 'a' ? Why is it '131' ?
I see the only difference is '015' instead of '15'.
#include<stdio.h>
int main()
{
int a,b,c;
a=015 + 0x71 +5;
printf("%d\n",a); // prints '131'
b=15 + 0x71 +5;
printf("%d\n",b); // prints '133'
}
Can someone let me know whats going on in here ?