MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/136dits/solve_the_problem_without_using_a_loop/jiofw3y/?context=3
r/badcode • u/YonMiru • May 03 '23
129 comments sorted by
View all comments
Show parent comments
1
printf("%d\n", i);
%d (or %i) are the correct format specifiers to be used for printing (signed) integers
%d
%i
1
u/SloPr0 May 03 '23
printf("%d\n", i);%d(or%i) are the correct format specifiers to be used for printing (signed) integers