CSAPP-3e icon indicating copy to clipboard operation
CSAPP-3e copied to clipboard

3.63 switch

Open SydCS opened this issue 1 year ago • 0 comments

long switch_prob(long x, long n) { long result = x; switch (n) { case 60: case 62: result = 8 * x; break; case 63: result = x >> 3; break; case 64: result = 15 * x; x = result; case 65: x *= x; default: result = x + 75; break; } return result; }

SydCS avatar Nov 27 '23 14:11 SydCS