Question: This is a brief C exercise. (The labs will require comfort and fluency in C.) Below is a snippet of code: void op1(int a, int

This is a brief C exercise. (The labs will require comfort and fluency in C.) Below is a snippet of code: void op1(int a, int b) { a = a + b; } void op2(int* a, int* b) { *a = *a + *b; } int main() { int a = 1, b = 1, C = 1, d = 1; op1(a, b); op2(&c, &d); return 0; } What are the values of a, b, c, and d right before the program exits? Since the purpose of this exercise is to build your skills, you should do this problem without compiling and running the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
