Question: The printf statement in C provides powerful formatting function to display data in various form. The basic syntax is prinf(formatString, parameter list); The number of

The printf statement in C provides powerful formatting function to display data in various form. The basic syntax is prinf("formatString", parameter list); The number of parameters should be the same as the number of placeholders marked by %escape characters. There are many format specifiers in C and here are those for specifying number systems: Specifier Number system %d Decimal %x, %#x, %#X Hexadecimal %o, %#o Octal Match the following printf statement with their corresponding output. Test them in your program to make sure you understand.

printf("%d ",011);

printf("%d ",0x11);

printf("%o ",11);

. printf("%x ",20);

printf("%d ",11);

-printf("%o ",0X10);

A. 13 B. 17 C. 11 D. 9 E. 20 F. 14

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!