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 = %d\n ",a&&b);
- }
- else{
- printf("false\n ");
- }
- return 0;
- }
- /*
- 14:58:23: Starting /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1...
- false
- true ; a = 1
- 14:58:23: /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