Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programing c 3. (15 pts) Declare a character array of size 10. Write a loop to initialize the array with consecutive letters starting at the

programing c
image text in transcribed
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions