SubhanUllah Posted October 24, 2022 Report Share Posted October 24, 2022 #include <stdio.h> int main(){ printf("%X\n", 0x7^0xA); // prints D } /* 0x7 = 0111 0xA = 1010 0xD = 1101 */ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.