C programming
12. Whether the statements: int a = 34; float x = 6.25; Specify which of the following display instructions to be executed so as to display on the screen row below: 34 ##: # 6,250 where the "#" character symbolizes space. a) printf ("\ n% 4d:% - 10f", a, x); b) printf ("\ n% -4d:% 6.3f", a, x); c) printf ("\ n% 6d:% 10f", a, x); d) printf ("\ n% d:% -. 3f" a, x); e) printf ("\ n% d:% f", a, x);
@ganeshie8 @Abhisar @Nurali @dan815 @e.mccormick @Compassionate @paki @mathslover @radar @Kainui @TheSmartOne @kropot72 @sammixboo @undeadknight26 @pooja195 @sleepyjess @Conqueror @Mimi_x3 @bohotness
No mass tagging please. And I have no clue.
I don't know what format would be needed for European style decimals. I do see that "\ n" is probably not what is wanted. "\n" is used to represent a linefeed ( ASCII 0x0a ). "\r" is used for carriage returns ( ASCII 0x0d ).
Some documented examples: http://www.tutorialspoint.com/c_standard_library/c_function_printf.htm http://www.cplusplus.com/reference/cstdio/printf/
Join our real-time social learning platform and learn together with your friends!