Question: The following function calls supposedly write a single new -line character, but some are incorrect. Identify which calls don't work and explain why. a) printf(%c,

 The following function calls supposedly write a single new -line character,

The following function calls supposedly write a single new -line character, but some are incorrect. Identify which calls don't work and explain why. a) printf("%c", ' '); b) printf("%c", " "); c) printf("%s", ' '); d) printf("%s", " "); e) printf(' '); f) printf(" "); g) putchar(' '); h) putchar(" "); i) puts(' '); j) puts(" "); k) puts(""); Suppose that p has been declared as follows; cahr *p = "abc"; which of the following function calls are legal? Show the output produced by each legal call, and explain why the other are illegal. A) putchar(p); b) putchar (*p); c) puts (p); d) puts (*p)

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!