Question: 2. Write a C program for an embedded application (which must have a dead/forever loop) which computes factorial of number 5 using a for loop

2. Write a C program for an embedded application (which must have a dead/forever loop) which computes factorial of number 5 using a "for loop" structure. Your program should use a single main) function to implement the functionality, and stay in the dead/forever loop once computation is complete 3. Write a C program for an embedded application (using a dead/forever loop) which determines the maximum valued number in an array of numbers. Declare a global array with 10 elements of integer type, name it maxValueArray, and initialize the array to following values: -1, 5, 3, 8, -10, 23, 6, 5, 2, 10. Declare a global integer type variable "arraySize" and initialize it to 10. Implement the functionality within the main) function. Once the task of determining the maximum number is completed, the mainO should stay in a forever loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
