You are viewing a single comment's thread. Return to all comments →
Can be done using NOT gate
int T; cin >> T; unsigned int *n = new unsigned int[T]; for(int i = 0; i<T; i++) { cin >> n[i]; } for(int i = 0; i<T; i++) { cout << ~n[i] << "\n"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Flipping bits
You are viewing a single comment's thread. Return to all comments →
Can be done using NOT gate