C++ | Sololearn: Learn to code for FREE!



What does | mean in mask|(1<<city) Where mask and city,are integer?

1/23/2022 5:48:54 AM

narges ghanbari

1 Answer

New Answer


The pipe symbol `|` is known as bitwise OR operator whereas `<<` is bitwise left shift operator. Take a look at these community lessons. https://www.sololearn.com/learn/4073/?ref=app https://www.sololearn.com/learn/4087/?ref=app