Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C programming Questions 4-6. Consider this function: int solveEquation (double a

ID: 3775088 • Letter: C

Question

C programming Questions 4-6.

Consider this function: int solveEquation (double a, double b, double *px){*px = 0: if (a != 0){*px = -b/a; return 1;} else {double a1; scanf("%lf", &a1;); *px = -b/a1; return 0;}} What is the scope of identifier a1 ? the entire file the if statement the else compound statement the entire function Consider the following declarations: char password[] = "big secret"; int* pc = &password;[6]; What is the value of expression *pc ? 'r' 'e' 'c' '' Consider the following declarations: int values[] = {3, -2, 1, 4. -3, 2, 0}; int* p = &values;[4]; What is the value of expression *p ? 1 4 2 -3

Explanation / Answer

Answers: please check the answers below for the Questions

Question 4: the else compound statement
Question 5: 'c'
Question 6: -3