Question: please explain me this question (programming c+) Consider the following program fragment: int b = 1; int fiddle(int c) {c = c * 2; b

 please explain me this question (programming c+) Consider the following program

please explain me this question (programming c+)

Consider the following program fragment: int b = 1; int fiddle(int c) {c = c * 2; b = 0; return 3;} int main() {int a = 5, b = 7, c = 2; c = fiddle(a);/* HERE */return 0;} What are the values of a, b and c when execution reaches/* HERE */? (a) a is 5, b is 1, c is 4 (b) a is 10, b is 7, c is 2 (c) a is 10, b is 1, c is 3 (d) a is 5, b is 0, c is 2 (e) a is 5, b is 7, c is 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!