How do you write printf state for unsigned integer 40000 left justified in a 15-digit field with 8 digit field?

1 answer

Answer

1032289

2026-04-28 23:21

+ Follow

So is it 8 or 15?

printf ("%-15u", state); or

printf ("%-8u", state);

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.