Choose the correct description for control string %-+7.2f.

Choose the correct description for control string %-+7.2f. Correct Answer – means left justify, + means display the sign, 7 specifies the width and 2 specifies the precision

The given control string %-+7.2f means that – is for left justify, + to display sign, 7 specifies the precision and 2 specifies the width.

Related Questions

What will be the output when the following program is compiled and executed? abstract class TestAbstract{ String my_name; String myName(){ my_name = "Examveda"; return my_name; } abstract void display(); } public class Test extends TestAbstract{ void display(){ String n = myName(); System.out.print("My name is "+ n); } public static void main(String args[]){ Test t = new Test(); t.display(); } }
What will be the output of the following PHP code? "convertSpace")); ?>