Question

Which of the following is the correct way to output the value of 4 left justified?
(a) printf( "%i", 4 );
(b) printf( "%-i", 4 );
(c) printf( "4%i", 4 );
(d) printf( "4-%i", 4 );

Answer

This answer is hidden. It contains 3 characters.