apc-s-003.c¶
Metadata¶
| Property | Detail |
|---|---|
| Author | Amit Dutta (amitdutta4255@gmail.com) |
| License | MIT |
Actions¶
💡 You can print or save this file by opening Raw and using your browser.
Source Code¶
#include <stdio.h>
int main() {
int a = 5, b = 5, c = 10, result;
result = (a == b) && (c > b);
printf("Result is %d\n", result);
result = (a == b) && (c < b);
printf("Result is %d\n", result);
result = (a != b) || (c < b);
printf("Result is %d\n", result);
result = (a != b) || (c < b);
printf("Result is %d\n", result);
result = !(a != b);
printf("Result is %d\n", result);
result = !(a == b);
printf("Result is %d\n", result);
return 0;
}