+ 5
[C] How to print a variable in a field of size S? (S is inputted by the user)
Everyone knows, %3d right? % means print a variable 3 means use at least 3 space to display d means the variable will be integer but is there anyway to print with a field of size S, where S in an integer inputted by the user?
5 odpowiedzi
+ 7
Interesting question 👍👍
+ 3
it worked! thanks a lot 😃
0
Int a[5];
gets( a);
Printf("%s",a);
You can use it
0
Good question 😼