Skip to content

apc-sps-005.c

Problem Statement

Bitwise OR '|'

Metadata

Property Detail
Author Amit Dutta (amitdutta4255@gmail.com)
License MIT

Actions

Raw View on GitHub

💡 You can print or save this file by opening Raw and using your browser.

Source Code

#include<stdio.h>
int main() {
    int x = 12, y = 14, z = 10, res;
    x++;
    z++;
    x = x + y + z;
    res = x | y;
    z = res | z;
    printf("x = %d y = %d z = %d res = %d", x, y, z, res);
    return 0;
}