Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <limits.h>
- int main()
- {
- int a = 8;
- int b = 5;
- if(a & b){
- printf("true\n a = %d\n ",a&b);
- }
- else{
- printf("false\n ");
- }
- if(a && b){
- printf("true ; a&&b= %d\n ",a&&b);
- }
- else{
- printf("false\n ");
- }
- return 0;
- }
- /*
- 14:59:51: Starting /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1...
- false
- true ; a&&b= 1
- 14:59:51: /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1 exited with code 0 */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement