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 'O' and 'K':printf( "%s%s\n", 'O', 'K' );f) 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.