Answered step by step
Verified Expert Solution
Question
1 Approved Answer
programing c please explain each answer thank you so much 3. (15 pts) Declare a character array of size 10. Write a loop to initialize
programing c please explain each answer thank you so much 3. (15 pts) Declare a character array of size 10. Write a loop to initialize the array with consecutive letters starting at the letter D 4. (10 pts) Declare a two-dimensional int array of size 4x 8 (row x column) and initialize the first element of every row to 6 and the remaining elements to O at the same time of declaration. Use as short statement wherever possible The following problems are assigned for Lecture 23 Functions L. Do them after the lecture. 5. 15 pts) Write a function called tolowerCase that takes a character variable letter as input and returns it into lowercase. If letter is already lowercase or a number from 0 to 9, do not change t. For example, if letter is 'A', return 'a. If letter is 'a' or 'O, return the same letter. 6. (15 pts) What is the output of the following program? Explain how you get the value. #include int expand(int number, int factor) retum number factor int main(void) ( int x-3 printf("%d %an", expand(x + 1, 41, expand(expand(x+2, 3),-3) ); return 0; 7. (15 pts) Fix three errors in the following program: #include int main(void) char a [7] = {"a", 'b','c', 'd', 'e", 'f','g','h'); char bl7)- ['A char target-f: copy array a into array b: b- a; Look for target in array a: if (a(x)-= target) printfl"Found itIn" break; return 0
programing c
please explain each answer
thank you so much
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started