Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA
0

C++

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

c++tsptravelingsalesperson
23rd Jan 2022, 5:48 AM
narges ghanbari
narges ghanbari - avatar
1 Respuesta
+ 5
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
23rd Jan 2022, 5:53 AM
Simba
Simba - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
What is slicing of data in lists ?
2 Votes
Gráficos
0 Votes
Using Def
0 Votes
Coding
0 Votes
please add rust? , I'm can create and write code in Rust , can you add rust in create section please?
3 Votes
Redis
0 Votes
Is ethical hacking good? :)
0 Votes
I have been learning code for about 2 months and I am still not good
0 Votes
How to make csharp program.cs, other Windows like the launch json and how to add other languages in the same code on ipad
0 Votes
I am wondering if there is anything i need to know
1 Votes