Begginer question

F

fermineutron

I googled for it but found 0 results "|=" my question is:

what does |= do?

| is a bitwise or
= is equal
but what |= do?


I am using C not C++ if it makes any difference.
 
J

Joe Wright

fermineutron said:
I googled for it but found 0 results "|=" my question is:

what does |= do?

| is a bitwise or
= is equal
but what |= do?


I am using C not C++ if it makes any difference.
You should have a good C book. Then you should read the book.
 
K

Keith Thompson

fermineutron said:
I googled for it but found 0 results "|=" my question is:

what does |= do?

| is a bitwise or
= is equal
but what |= do?

Look up "compound assignment" in your C textbook or in the standard.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top