What is the output of the following C program?
#include <stdio.h>
int main(void) {
printf("%6.2f|%-4d|%04d|%+d\n", 3.14159, 7, 42, 5);
return 0;
}
Width 6 with 2 decimals right-aligns 3.14 in 6 columns; - left-aligns 7 in 4; 0 pads 42 with zeros to 4; + shows the sign.