APC-SPS-006.c (356B)
1 /* 2 * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 3 * Repo: https://github.com/notamitgamer/bsc 4 * License: MIT 5 */ 6 7 /* Bitwise NOT '~' */ 8 9 #include<stdio.h> 10 int main() { 11 int x = 12, y = 15, z = 21; 12 int res, res1, res2; 13 res = x > 10; 14 res1 = ~res; 15 res2 = ~x; 16 printf("REs = %d, Res1 = %d, Res2 = %d", res, res1, res2); 17 return 0; 18 }