Code

#include <stdio.h>
#include <stdint.h>

int main(void)
{
    int8_t reg;
    scanf("%hhd\n", &reg);
    int8_t mask = 1 << 5;
    int8_t result = reg ^ mask;
    printf("%d\n", result);
    return 0;
}

Solving Approach

 

 

 

Upvote
Downvote
Loading...

Input

8

Expected Output

40