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

print hex bit using c/cpp #188

Open
licoded opened this issue Feb 8, 2024 · 0 comments
Open

print hex bit using c/cpp #188

licoded opened this issue Feb 8, 2024 · 0 comments
Labels

Comments

@licoded
Copy link
Owner

licoded commented Feb 8, 2024

## for `int` type variables
printf("val = 0x%lx\n", val);

## advanced
printf("val = 0x%" PRIx64 "\n", val);
printf("val = 0x%llx\n", val);

references links

@licoded licoded added the c++ label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant