Advertisement
mario_mos

t2

Jul 21st, 2023
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <limits.h>
  3.  
  4. int main()
  5. {
  6. int a = 8;
  7. int b = 5;
  8.  
  9. if(a & b){
  10. printf("true\n a = %d\n ",a&b);
  11. }
  12. else{
  13. printf("false\n ");
  14. }
  15.  
  16. if(a && b){
  17. printf("true ; a = %d\n ",a&&b);
  18. }
  19. else{
  20. printf("false\n ");
  21. }
  22.  
  23.  
  24.  
  25.  
  26. return 0;
  27. }
  28.  
  29. /*
  30. 14:58:23: Starting /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1...
  31. false
  32. true ; a = 1
  33. 14:58:23: /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1 exited with code 0 */
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement