i have this small piece of code that has an integer array containing some elements with a leading 0.
int arr[]={012,234,071};
cout<<arr[0]<<endl; //output 10
cout<<arr[1]<<endl; //output 234
cout<<arr[2]<<endl; //output 57
for some reason am i getting different output for values with leading zeros,can someone explain this to me why is this happening?