Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int a = 0;
- int b = 0;
- // uses of operator &&
- if(a && b){
- printf("The statement returns true\n");
- }else{
- printf("The statement returns false\n");
- }
- // uses of operator ||
- if(a || b){
- printf("The statement returns true\n");
- }else{
- printf("The statement returns false\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement