samedi 18 avril 2015

Initial 0s in int. [C]

int variable=01147;


printf("%d", variable);


When I run this code, i see 615 instead of 1147. Why is that? How should I proceed to make sure those 0 will be skipped in variable?


Aucun commentaire:

Enregistrer un commentaire