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