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, 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
Get step-by-step solutions from verified subject matter experts
