r/programminghumor • • Aug 22 '26

How do you disable your code

/img/ng4rgeq6kvkh1.jpeg
297 Upvotes

91 comments sorted by

View all comments

10

u/mehonje Aug 22 '26
void fun() {
  int a = 198;
  int b = a % 2;
  int c = a - b
}
int main() {
  //fun();
}

1

u/geek-49 Aug 26 '26

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