What means the ~ symbol in the code? I'm learning Arduino (school and from myself).

We have the following code:

temp = Wire.read();
temp = ~temp;
temp = temp - 1;


This code is made to read, then print positive and negative values from a temp sensor. If you need more parts of the code, let me know.

I don't understand what does the ~ symbol, can someone help me?

Thanks.
As always, ~ in C++ is bitwise negation.