SLIDE 1
1
Unit 16 Debugging 2 2 PART 2 3 Exercises Practice - - PowerPoint PPT Presentation
1 Unit 16 Debugging 2 2 PART 2 3 Exercises Practice "narrating" search sumpairs count primes 4 Step 4: Using a Debugger Allows you to Set a breakpoint (the code will run and then stop when it reaches a
1
2
3
4
5
6
7
8
int max(int a, int b) { if(a > b) return a; ... } int main() { ... cin >> x; y = max(10,x); cout << y << endl; }
Suppose we are stopped here step next
9
10