Find absolute value without conditional
#include <stdio.h> #define BYTE_SIZE 8 int main() { int x = -32432; printf(“Absolute valur of %d is %d “, x, (x + (x >> sizeof(x)*BYTE_SIZE – 1)) ^ (x >> sizeof(x)*BYTE_SIZE – 1)); return 0; }
goli202084 Answered question