Find the error(s) in each of the following program segments. Explain how each error can be corrected.
a) printf("%s\n", 'Happy Birthday');
b) printf("%c\n", 'Hello');
c) printf("%c\n", "This is a string");
d) The following statement should print "Bon Voyage": printf(""%s"", "Bon Voyage");
e) char day[]= "Sunday";
printf("%s\n", day[3]);
f) puts('Enter your name: ');
g) printf(%f, 123.456);
h) The following statement should print the characters '0' and 'K': printf("%s%s\n", '0', 'K');
i) char s[10];
scanf("%c", s[7]);
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.