/* * add 2 to j 100 times * * this program has a bug -- comments omitted to hide it * used to demonstrate static and dynamic debugging * * Matt Bishop, ECS 36A, Fall 2019 */ #include <stdio.h> int main(void) { int i, j = 0; for(i = 0; i < 100; i++); j += 2; printf("The value of j is: %d\n", j); return(0); }
|
ECS 36A, Programming & Problem Solving Version of April 2, 2024 at 12:13PM
|
You can get the raw source code here. |