fork download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3.  
  4. int main(void) {
  5. // your code goes here
  6.  
  7. uint32_t G_PMU_CH_PONDC = 0xF3; // 1111 0011
  8. uint32_t G_PMU_CH = 0;
  9.  
  10. G_PMU_CH = ~G_PMU_CH_PONDC & 0xFF; // 0000 1100 & 0xFF -> 0x3
  11.  
  12. printf("Result:%08X\n",G_PMU_CH);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4312KB
stdin
Standard input is empty
stdout
Result:0000000C