Question: 1. Show two different ways to initialize character array vowel with the string of vowels AEIOU. 2. Write a program that inputs a line of

1. Show two different ways to initialize character array vowel with the string of vowels "AEIOU". 2. Write a program that inputs a line of text into char array s[100]. Output the line in alternate uppercaseletters and lowercase letters. 3. Write a program that inputs six strings that represent integers, converts the strings to integers, and calculates the sum and average of the six values. 4. Write a program that uses function strcat to concatenate two strings provided by the user. The program should print the strings before and after concatenating as well as the length of the concatenated string. 5. Find the error in each of the following and explain how it can be corrected. a) The following statement should print the character 'c'. printf("%s ,c); b) The following statement should print 9.375%. printf("\%.3f\%", 9.375); c) The following statement should print the first character of the string "Monday". printf("\%cln", "Monday"); d) puts(""A string in quotes""'); e) printf(\%d\%d, 12, 20); f) printf("\%c", "x")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
