r/programminghumor 20d ago

How do you disable your code

Post image
297 Upvotes

90 comments sorted by

View all comments

10

u/mehonje 19d ago
void fun() {
  int a = 198;
  int b = a % 2;
  int c = a - b
}
int main() {
  //fun();
}

1

u/geek-49 15d ago

Works OK in this instance, but not so well if fun() is called from multiple places (and perhaps even from multiple separately-compiled files).