on-internet
← Community

Printf format string maximum width value (padding) %(??)d%n

Stack Overflow ·

What is the maximum width value I can put in the %d format specifier? For example: int c=0; printf("%1234567899d%n",0,&c); printf("%d",c); When I use large values the written value of c is 0. Why is that?

Comments

Sign in or sign up to comment and upvote.

No comments yet.