Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong result in "bitwise-operators" example #7

Closed
stefanolsenn opened this issue May 19, 2020 · 1 comment
Closed

wrong result in "bitwise-operators" example #7

stefanolsenn opened this issue May 19, 2020 · 1 comment

Comments

@stefanolsenn
Copy link

stefanolsenn commented May 19, 2020

In the example: https://devtut.github.io/c/operators.html#bitwise-operators

It states that the bitwise operation is 32.
c = a & b; /* 32 = 0001 0000 */
While the binary representation is correct, the decimal representation should be 16.

@imranpollob
Copy link
Contributor

Solved now, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants