How to print unsigned int using printf in C

1 Answer

0 votes
#include <stdio.h>

int main() {
    unsigned int num = 35341257;
    
    printf("%u", num);
}
   
   
   
/*
run:
   
35341257
   
*/

 



answered Dec 29, 2023 by avibootz

Related questions

1 answer 200 views
1 answer 166 views
1 answer 114 views
2 answers 207 views
207 views asked Jan 4, 2021 by avibootz
1 answer 159 views
4 answers 569 views
2 answers 176 views
...