This will work if(schrodingers_cat_is_dead()) { printf(\"hello\"); } else { printf(\"world\"); } Unfortunately, as soon as you look at the output, not only will it collapse into the state of only producing \"hello\" or \"world\", but there\'s a 50% chance you will have murdered a cat.