Advertisement
mario_mos

a&&b

Jul 21st, 2023
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 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);
  11. }
  12. else{
  13. printf("false\n ");
  14. }
  15.  
  16. if(a && b){
  17. printf("true ; a = %d\n ",a);
  18. }
  19. else{
  20. printf("false\n ");
  21. }
  22.  
  23.  
  24.  
  25.  
  26. return 0;
  27. }
  28.  
  29. /* résultat :
  30. 14:53:59: Starting /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1...
  31. false
  32. true ; a = 8
  33. 14:53:59: /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